Template:Interval edo approximation/doc

From Xenharmonic Wiki
Jump to navigation Jump to search
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.