Constants
Meantonal provides an assortment of constant Map1D
and Map2D
matrices to use with mapping operations. Most built-in functions in Meantonal abstract over the specific maps being used, so few users will ever need to touch them.
They are of particular utility, however, for people playing with tuning systems other than 12-tone equal temperament, or building graphical visualisations of generalised keyboard layouts.
EDO Maps
Section titled “EDO Maps”These maps send any Pitch
or Interval
to its representation as EDO-steps in a given equal temperament. Intuitively, you can think of them as defining the respect size of whole and half steps after the map. In 12TET, a whole step is two half steps, therefore is the matrix that projects the Meantonal space onto 12TET.
const Map1D EDO7 = {1, 1};const Map1D EDO12 = {2, 1};const Map1D EDO17 = {3, 1};const Map1D EDO19 = {3, 2};const Map1D EDO22 = {4, 1};const Map1D EDO31 = {5, 3};const Map1D EDO50 = {5, 3};const Map1D EDO53 = {9, 4};const Map1D EDO55 = {5, 4};const Map1D EDO81 = {13, 8};
Basis Changes
Section titled “Basis Changes”These maps send any Pitch
to its coordinates in the new basis, or vice versa.
These two maps can be used to go to and from the Wicki-Hayden layout:
const Map2D WICKI_TO = {1, -3, 0, 1};const Map2D WICKI_FROM = {1, 3, 0, 1};
Generators
Section titled “Generators”These two maps can be used to go to and from a grid where the x-axis increments by perfect 5th, and the y-axis by octave.
const Map2D GENERATORS_TO = {2, -5, -1, 3};const Map2D GENERATORS_FROM = {3, 5, 1, 2};
This is potentially useful when calculating concrete pitches from Meantonal’s abstract Pitch
vectors in non-EDO tuning systems such as quarter comma meantone, where there are an infinite number of distinct pitches in the system, since it is generated entirely by its fifth and octave (hence the name of this map).
Miscellaneous
Section titled “Miscellaneous”CONCERT_C
Section titled “CONCERT_C”This constant is useful when creating a TuningMap
. It sets a value of C4 that corresponds to A4 = 440Hz in 12-tone equal temperament. The frequency of all Cs thereby remains fixed in different tunings.