Expand description
Tuning-system ratios, labels and frequency helpers.
Modules§
- adaptive
- scala
- Runtime parsing of Scala
.sclscale files. Runtime parsing of Scala.sclscale files. - scala_
bundled - The bundled Scala scale archive, emitted by
xtask emit-scala-archive.
Structs§
- Fraction
- A ratio-like value used by tuning tables.
Enums§
- AnyTuning
System - Either a normal tuning system or a context-sensitive adaptive tuning system.
- 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.
- CARLOS_
HARMONIC - Twelve-tone harmonic-series scale (Wendy Carlos’s Harmonic).
- CARLOS_
HARMONIC_ 24 - Twenty-four-tone harmonic-series scale.
- CN1
- Frequency of C-1 in hertz.
- COMMON_
EQUAL_ TEMPERAMENTS - The equal divisions of the octave that xenharmonic practice actually uses.
- 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.
- HISTORICAL_
TEMPERAMENTS - Historical keyboard temperaments, oldest first.
- INDIAN_
SCALE_ 22 - Twenty-two-tone Indian scale ratios.
- INDIAN_
SCALE_ NAMES - Degree labels for the seven-tone PtolemyIntenseDiatonic scale.
- INDIA_
SCALE_ ALT - Alternate seven-tone Indian scale ratios.
- JAVANESE
- Five-tone Javanese equal-temperament approximation.
- KIRNBERGER_
I - Twelve-tone Kirnberger I well temperament (1766).
- KIRNBERGER_
III - Twelve-tone Kirnberger III well temperament (1744).
- LEHMAN_
BACH - Twelve-tone Lehman-Bach temperament (2005).
- NEIDHARDT_
I - Twelve-tone Neidhardt I well temperament (1724).
- OCTAVE_
SIZE - Default octave size for twelve-tone systems.
- PTOLEMY_
INTENSE_ DIATONIC - Ptolemy’s intense diatonic, also Zarlino’s just major scale.
- PYTHAGOREAN_
TUNING - Twelve-tone Pythagorean tuning ratios.
- QUARTER_
COMMA_ MEANTONE - Twelve-tone quarter-comma meantone temperament (Aaron, 1523).
- RAMEAU
- Twelve-tone Rameau modified meantone temperament (1725).
- SILBERMANN
- Twelve-tone Gottfried Silbermann temperament no. 1 (c. 1730).
- SIXTH_
COMMA_ MEANTONE - Twelve-tone sixth-comma meantone temperament (Salinas, 1577).
- THAI
- Seven-tone Thai equal-temperament approximation.
- THIRD_
COMMA_ MEANTONE - Twelve-tone third-comma meantone temperament (Salinas, 1577).
- TWELVE_
TONE_ NAMES - Degree labels for a twelve-tone chromatic octave.
- TWELVE_
TONE_ NAMES_ FLAT - Degree labels for a twelve-tone chromatic octave using flats.
- TWELVE_
TONE_ NAMES_ SHARP - Degree labels for a twelve-tone chromatic octave using sharps.
- VALLOTTI
- Twelve-tone Vallotti well temperament (c. 1754).
- WERCKMEISTER_
III - Twelve-tone Werckmeister III well temperament (1681).
- WERCKMEISTER_
IV - Twelve-tone Werckmeister IV well temperament (1681).
- WERCKMEISTER_
V - Twelve-tone Werckmeister V well temperament (1681).
- WHOLE_
TONE_ NAMES - Degree labels for a whole-tone octave.
- YOUNG_
II - Twelve-tone Thomas Young well temperament no. 2 (1799).
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.