Expand description
Scales, modes, and scale-locking for the SIM music libraries.
This crate defines the diatonic and symmetric Modes, the Scale type
that anchors a mode to a tonic pitch class, and the diatonic operations built
on them (degree lookup, diatonic transposition, chord/scale tone mapping). The
PlayerScale and ScaleLockPlayer types provide a performance-oriented
surface that quantizes, filters, or remaps incoming pitches onto a chosen scale.
Structs§
- Key
- A musical key: a tonic pitch class paired with a
Mode. - Player
Scale - A performance-oriented scale that owns its interval list, supporting both the
built-in
Modes and arbitrary custom scales. - Scale
- A concrete scale: a
Modeanchored to a tonic pitch class. - Scale
Lock Player - Applies a
ScaleLockPolicyto incoming pitches against aPlayerScale.
Enums§
- Mode
- A scale mode, defined by its semitone interval pattern from the tonic.
- Pitch
Scale Error - Error returned when a scale operation fails or a scale cannot be constructed.
- Scale
Lock Policy - The strategy a
ScaleLockPlayeruses to force pitches onto its scale.
Statics§
- RECIPES
- Cookbook recipes for this lib, embedded at build time.