Template:Interval edo approximation/doc: Difference between revisions

Pailiaq (talk | contribs)
mNo edit summary
Pailiaq (talk | contribs)
bug fixes
Line 5: Line 5:
=== Basic syntax ===
=== Basic syntax ===
<pre>
<pre>
{{Interval edo approximation|3/2}}
{{Interval edo approximation|interval = 3/2}}
</pre>
</pre>
if the name of the page is the interval you are trying to create a table of, use  
if the name of the page is the interval you are trying to create a table of, it will by default use the pagename as the interval.
<pre>
<pre>
{{Interval edo approximation|{{PAGENAME}}}}
{{Interval edo approximation|{{PAGENAME}}}}
</pre>
=== With named parameter ===
<pre>
{{Interval edo approximation|interval=5/4}}
</pre>
</pre>


Line 23: Line 18:


=== Parameters ===
=== Parameters ===
; <code>interval</code> (or first unnamed parameter)
; <code>interval</code>  
: the just interval ratio (required). Format: "numerator/denominator" (e.g., "3/2", "5/4", "7/6")
: the just interval ratio (required). Format: "numerator/denominator" (e.g., "3/2", "5/4", "7/6")
; <code>tolerance</code>
; <code>tolerance</code>
Line 34: Line 29:
=== Examples ===
=== Examples ===
; Perfect fifth (3/2)
; Perfect fifth (3/2)
{{Interval edo approximation|3/2}}
{{Interval edo approximation|interval = 3/2}}


; Major third (5/4) with custom tolerance (20%)
; Major third (5/4) with custom tolerance (20%)
{{Interval edo approximation|5/4|tolerance=20}}
{{Interval edo approximation|interval = 5/4|tolerance=20}}


; Septimal minor third (7/6) with extended range (up to 150edo)
; Septimal minor third (7/6) with extended range (up to 150edo)
{{Interval edo approximation|7/6|min_edo=5|max_edo=150}}
{{Interval edo approximation|interval = 7/6|min_edo=5|max_edo=150}}