Template:Interval edo approximation/doc: Difference between revisions
Jump to navigation
Jump to search
Created page with "{{Dochead}} == 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|toler..." |
mNo edit summary |
||
| Line 39: | Line 39: | ||
{{Interval edo approximation|5/4|tolerance=20}} | {{Interval edo approximation|5/4|tolerance=20}} | ||
; Septimal minor third (7/6) with extended range (up to | ; Septimal minor third (7/6) with extended range (up to 150edo) | ||
{{Interval edo approximation|7/6|min_edo=5|max_edo= | {{Interval edo approximation|7/6|min_edo=5|max_edo=150}} | ||
Revision as of 21:02, 3 November 2025
- This template is implemented by the Lua module Module:Interval edo approximation.
- This template invokes the following functions: main from Interval edo approximation.
Usage
This template generates edo approximation tables for just intervals.
Basic syntax
{{Interval edo approximation|3/2}}
if the name of the page is the interval you are trying to create a table of, use
{{Interval edo approximation|{{PAGENAME}}}}
With named parameter
{{Interval edo approximation|interval=5/4}}
With custom parameters
{{Interval edo approximation|interval=7/6|tolerance=10|min_edo=12|max_edo=72}}
Parameters
interval(or first unnamed parameter)- the just interval ratio (required). Format: "numerator/denominator" (e.g., "3/2", "5/4", "7/6")
tolerance- relative error tolerance in percent (optional, default: 9)
min_edo- minimum edo to check (optional, default: 5)
max_edo- maximum edo to check (optional, default: 60)
Examples
- Perfect fifth (3/2)
Lua error in Module:Utils at line 84: attempt to perform arithmetic on a nil value.
- Major third (5/4) with custom tolerance (20%)
Lua error in Module:Utils at line 84: attempt to perform arithmetic on a nil value.
- Septimal minor third (7/6) with extended range (up to 150edo)
Lua error in Module:Utils at line 84: attempt to perform arithmetic on a nil value.