qualia_audio/midi/tuning/mod.rs
1//! Microtuning — Scala `.scl`/`.kbm` + MIDI Tuning Standard (MTS). Re-exports only (AU-MIDI-TUNE).
2//!
3//! Tuning is a FIRST-CLASS, declared parameter here — 12-TET is one input among many, never
4//! hardcoded. Clean-room implementations from the open Scala scale-file / keyboard-mapping specs
5//! and the MMA MIDI Tuning Standard. The note→frequency table is a fixed `[f64; 128]` and lookup
6//! is allocation-free; only `.scl`/`.kbm` text parsing (a cold path) may allocate.
7
8pub mod mts;
9pub mod scala_kbm;
10pub mod scala_scl;
11
12pub use mts::{
13 build_tuning_table, decode_single_note_tuning, encode_single_note_tuning, note_frequency,
14 SingleNoteTuning, SNTC_LEN,
15};
16pub use scala_kbm::{parse_kbm, KbmMapping, KBM_UNMAPPED, MAX_KBM_ENTRIES};
17pub use scala_scl::{parse_scl, SclEntry, SclScale, MAX_SCALE_NOTES};