Skip to content

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.

number | number[]

Frequency ratio(s)

string = 'C'

Unison note name (default: ‘C’)

number = ...

Tolerance for ratio matching (default: 65/63 ≈ 1.0317)

boolean = true

Use unicode symbols (default: true)

string | string[]

FJS interval notation

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']