Module music_theory::theory::scale
source · Expand description
Scales are lists of notes. Variants are Scale
and Steps
.
Structs§
- The
ModeIterator
iterates over modes. Anything that is Clone + ModeTrait + VecWrapper can spawn aModeIterator
. - A scale is a list of notes. For example, the C2 Major scale contains the notes [C2, D2, E2, F2, G2, A3, B3].
- Scale iterator iterates over a scale and yields notes. You can take a
ScaleIterator
from Steps and let it generate notes from the steps. - A Steps object is a list of intervals. In this case, the list of notes is represented by the intervals between the notes. The scale formulas build from half steps and whole steps such as [W,W,H,W,W,W,H] for the C Major scale are an example of Steps. Steps can also contain negative intervals, and as big leaps as the Interval type allows.
Type Aliases§
- A mode is an index into all possible modes.
- Type defined for convenience.