interval_to_fjs
interval_to_fjs(
interval,unison?,tolerance?,unicode?):string|string[]
Defined in: packages/pleco-xa/src/scripts/xa-notation.js:449
Convert an interval to Functional Just System (FJS) notation
Takes a frequency ratio and converts it to FJS interval notation.
Parameters
Section titled “Parameters”interval
Section titled “interval”number | number[]
Frequency ratio(s)
unison?
Section titled “unison?”string = 'C'
Unison note name (default: ‘C’)
tolerance?
Section titled “tolerance?”number = ...
Tolerance for ratio matching (default: 65/63 ≈ 1.0317)
unicode?
Section titled “unicode?”boolean = true
Use unicode symbols (default: true)
Returns
Section titled “Returns”string | string[]
FJS interval notation
Example
Section titled “Example”interval_to_fjs(3/2) // 'P5' (perfect fifth)interval_to_fjs(5/4) // 'M3^5' (just major third)interval_to_fjs([3/2, 5/4, 7/4]) // ['P5', 'M3^5', 'm7^7']