Skip to main content

Module tuning

Module tuning 

Source
Expand description

Microtuning — Scala .scl/.kbm + MIDI Tuning Standard (MTS). Re-exports only (AU-MIDI-TUNE).

Tuning is a FIRST-CLASS, declared parameter here — 12-TET is one input among many, never hardcoded. Clean-room implementations from the open Scala scale-file / keyboard-mapping specs and the MMA MIDI Tuning Standard. The note→frequency table is a fixed [f64; 128] and lookup is allocation-free; only .scl/.kbm text parsing (a cold path) may allocate.

Re-exports§

pub use mts::build_tuning_table;
pub use mts::decode_single_note_tuning;
pub use mts::encode_single_note_tuning;
pub use mts::note_frequency;
pub use mts::SingleNoteTuning;
pub use mts::SNTC_LEN;
pub use scala_kbm::parse_kbm;
pub use scala_kbm::KbmMapping;
pub use scala_kbm::KBM_UNMAPPED;
pub use scala_kbm::MAX_KBM_ENTRIES;
pub use scala_scl::parse_scl;
pub use scala_scl::SclEntry;
pub use scala_scl::SclScale;
pub use scala_scl::MAX_SCALE_NOTES;

Modules§

mts
MIDI Tuning Standard (MTS) — clean-room from the open MMA spec.
scala_kbm
Scala keyboard mapping (.kbm) parsing — clean-room from the open Scala format spec.
scala_scl
Scala scale file (.scl) parsing — clean-room from the open Scala format spec.