Template:Interval edo approximation: Difference between revisions

Pailiaq (talk | contribs)
template for new interval/edo approximation tables
 
Pailiaq (talk | contribs)
No edit summary
 
(19 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{#invoke:Interval_Edo_Approximation|main
<includeonly>{{#invoke: Interval edo approximation | main
|interval={{{interval|{{{1}}}}}}
| interval = {{{interval|{{PAGENAME}}}}}
|tolerance={{{tolerance|9}}}
| interval_name = {{{interval_name |{{PAGENAME}}}}}
|min_edo={{{min_edo|10}}}
| tolerance = {{{tolerance|10}}}
|max_edo={{{max_edo|60}}}
| min_edo = {{{min_edo|2}}}
| max_edo = {{{max_edo|80}}}
| debug = {{lc: {{{debug|}}}}}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
== Usage ==
{{Documentation}}
 
This template generates EDO approximation tables for just intervals.
 
=== Basic syntax ===
<pre>
{{Interval_Edo_Approximation|3/2}}
</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 ===
 
* '''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) ====
{{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>