Expand description
Tuning-system ratios, labels and frequency helpers.
Structs§
- Fraction
- A ratio-like value used by tuning tables.
Enums§
- Tuning
System - Supported tuning systems and ratio tables.
Constants§
- A0
- Frequency of A0 in hertz.
- A4
- Frequency of A4 in hertz.
- ALL_
TUNING_ SYSTEMS - All built-in tuning systems in canonical display order.
- AN1
- Frequency of A-1 in hertz.
- C0
- Frequency of C0 in hertz.
- C4
- Frequency of middle C in hertz.
- CN1
- Frequency of C-1 in hertz.
- COMMON_
TWELVE_ TONE_ TUNING_ SYSTEMS - The common twelve-tone tuning systems useful for comparing pitch frequencies.
- ELEVEN_
LIMIT - Twenty-nine-tone eleven-limit tuning ratios.
- FIVE_
LIMIT - Twelve-tone five-limit tuning ratios.
- FORTYTHREE_
TONE - Backwards-compatible alias for
FORTY_THREE_TONE. - FORTY_
THREE_ TONE - Forty-three-tone tuning ratios.
- INDIAN_
SCALE - Seven-tone Indian scale ratios.
- INDIAN_
SCALE_ 22 - Twenty-two-tone Indian scale ratios.
- INDIAN_
SCALE_ NAMES - Degree labels for the seven-tone Indian scale.
- INDIA_
SCALE_ ALT - Alternate seven-tone Indian scale ratios.
- JAVANESE
- Five-tone Javanese equal-temperament approximation.
- JUST_
INTONATION - Twelve-tone just intonation ratios.
- JUST_
INTONATION_ 24 - Twenty-four-tone just intonation ratios.
- OCTAVE_
SIZE - Default octave size for twelve-tone systems.
- PYTHAGOREAN_
TUNING - Twelve-tone Pythagorean tuning ratios.
- THAI
- Seven-tone Thai equal-temperament approximation.
- TWELVE_
TONE_ NAMES - Degree labels for a twelve-tone chromatic octave.
- WHOLE_
TONE_ NAMES - Degree labels for a whole-tone octave.
Functions§
- equal_
temperament - Creates an equal-temperament fraction for
tonewithinoctave_size. - equal_
temperament_ 12 - Creates a twelve-tone equal-temperament fraction.
- equal_
temperament_ default - Creates an equal-temperament fraction using
OCTAVE_SIZE. - get_
cents - Returns cents offset from equal temperament for a tuning-system degree.
- get_
cents_ at - Returns cents offset from equal temperament for a fractional degree index.
- get_
fraction - Returns the fraction for a tuning-system degree.
- get_
frequency - Returns the frequency in hertz for a tuning-system degree.
- get_
frequency_ at - Returns the frequency in hertz for a fractional tuning-system degree.
- get_
label - Returns a display label for a tuning-system degree.
- get_
ratio - Returns the frequency ratio for a tuning-system degree.