Skip to main content

Module tuningsystem

Module tuningsystem 

Source
Expand description

Tuning-system ratios, labels and frequency helpers.

Modules§

adaptive
scala
Runtime parsing of Scala .scl scale files. Runtime parsing of Scala .scl scale 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§

AnyTuningSystem
Either a normal tuning system or a context-sensitive adaptive tuning system.
TuningSystem
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 tone within octave_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.