Skip to main content

Module mos

Module mos 

Source
Expand description

Moments of symmetry, the scales a single generator makes. Moments of symmetry — the scales a single generator makes.

Stack one interval inside a period, fold everything back into that period, and for certain numbers of notes the result comes out with exactly two step sizes. That is a moment of symmetry, and the diatonic scale is the famous one: seven fifths folded into an octave give five whole tones and two semitones, 5L 2s. Stop at five notes instead and it is the pentatonic, 2L 3s; carry on to twelve and every step is the same, which is where the piano comes from.

The pattern and the tuning are separate things here. Mos is the pattern alone — how many large steps and how many small — and says nothing about how wide either is. MosScale is a generator and a period in cents with a note count, and answers in cents; asking it for its MosScale::pattern is what connects the two.

Structs§

Mos
How many large and small steps a moment of symmetry has.
MosScale
A generator and a period, folded into a scale of so many notes.

Constants§

OCTAVE_CENTS
The width of the octave, in cents, which is the usual period.

Functions§

moment_of_symmetry_sizes
Every note count up to most at which a generator makes a moment of symmetry.