|
|
| Line 5: |
Line 5: |
| | max_edo = {{{max_edo|80}}} | | | max_edo = {{{max_edo|80}}} |
| }}</includeonly><noinclude> | | }}</includeonly><noinclude> |
| {{Dochead}} | | {{Documentation}} |
| == Usage ==
| |
| This template generates edo approximation tables for just intervals.
| |
| | |
| === Basic syntax ===
| |
| <pre>
| |
| {{Interval edo approximation|3/2}}
| |
| </pre>
| |
| if the name of the page is the interval you are trying to create a table of, use
| |
| <pre>
| |
| {{Interval edo approximation|{{PAGENAME}}}}
| |
| </pre>
| |
| | |
| === With named parameter ===
| |
| <pre>
| |
| {{Interval edo approximation|interval=5/4}}
| |
| </pre>
| |
| | |
| === With custom parameters ===
| |
| <pre>
| |
| {{Interval edo approximation|interval=7/6|tolerance=10|min_edo=12|max_edo=72}}
| |
| </pre>
| |
| | |
| === Parameters ===
| |
| ; <code>interval</code> (or first unnamed parameter)
| |
| : the just interval ratio (required). Format: "numerator/denominator" (e.g., "3/2", "5/4", "7/6")
| |
| ; <code>tolerance</code>
| |
| : relative error tolerance in percent (optional, default: 9)
| |
| ; <code>min_edo</code>
| |
| : minimum edo to check (optional, default: 5)
| |
| ; <code>max_edo</code>
| |
| : maximum edo to check (optional, default: 60)
| |
| | |
| === Examples ===
| |
| ; Perfect fifth (3/2)
| |
| {{Interval edo approximation|3/2}}
| |
| | |
| ; Major third (5/4) with custom tolerance (20%)
| |
| {{Interval edo approximation|5/4|tolerance=20}}
| |
| | |
| ; Septimal minor third (7/6) with extended range (up to 80edo)
| |
| {{Interval edo approximation|7/6|min_edo=5|max_edo=80}}
| |
|
| |
|
| [[Category:Music theory templates]] | | [[Category:Music theory templates]] |
| [[Category:EDO templates]] | | [[Category:EDO templates]] |
| </noinclude> | | </noinclude> |