Expand description
MIDI note utilities and transport state machine.
Structs§
- Transport
- Playback/record transport — position, tempo, loop, and metronome state.
Enums§
- Transport
State - Transport state machine — play, stop, record, loop.
Functions§
- freq_
to_ midi_ note - Convert frequency to nearest MIDI note number.
- midi_
note_ to_ freq - MIDI note names to frequencies (A4 = 440 Hz).
- midi_
to_ note_ name - MIDI note number to note name.
- note_
name_ to_ midi - Note name (e.g. “C4”) to MIDI note number.
- quantize
- Quantize a beat position to the nearest grid division.
- transpose
- Transpose a MIDI note by semitones (clamped to 0-127).