Skip to main content

Crate sim_lib_pitch_scale

Crate sim_lib_pitch_scale 

Source
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.
PlayerScale
A performance-oriented scale that owns its interval list, supporting both the built-in Modes and arbitrary custom scales.
Scale
A concrete scale: a Mode anchored to a tonic pitch class.
ScaleLockPlayer
Applies a ScaleLockPolicy to incoming pitches against a PlayerScale.

Enums§

Mode
A scale mode, defined by its semitone interval pattern from the tonic.
PitchScaleError
Error returned when a scale operation fails or a scale cannot be constructed.
ScaleLockPolicy
The strategy a ScaleLockPlayer uses to force pitches onto its scale.

Statics§

RECIPES
Cookbook recipes for this lib, embedded at build time.