Expand description
aura-midi — MIDI messages and block buffers.
JUCE analogue: juce_audio_basics/midi (MidiMessage, MidiBuffer).
Format wrappers (CLAP/VST3/LV2) translate host events into these types
on ProcessContext (midi / notes / ump).
DSP (oscillators, voices, filters) lives in aura-dsp, not here.
Param host-learn hints stay in aura-params::MidiSource.
MIDI 2.0: Ump / UmpBuffer are first-class on ProcessContext
(ump / ump_out). 7-bit MidiMessage stays as the fallback image.
Structs§
- Midi
Buffer - Ordered MIDI events for one audio block. Sorted by
MidiEvent::sample_offset. - Midi
Event - One MIDI message at a sample offset within the current block.
- Midi
Message - One MIDI message. Channel is
0..=15for channel voice messages. - Ump
- One UMP packet: 1, 2, or 4 native-endian 32-bit words.
- UmpBuffer
- Ordered UMP events for one audio block. Same insert / rebase rules as
MidiBuffer. - UmpEvent
- One Universal MIDI Packet at a sample offset within the current block.
Enums§
- Midi
Status - High nibble of status byte (channel messages use low nibble as channel).
Functions§
- append_
midi_ as_ ump - Lift 7-bit MIDI into type-0x2 UMP (VST3/LV2 → process
ump). - append_
ump_ as_ midi - Down-convert UMP that has a MIDI 1 image (VST3/LV2 out). Per-note PB /
SysEx8/ Flex stay behind. - midi_
note_ to_ freq - Equal-temperament Hz, A4 = 440 Hz.
- midi_
note_ to_ freq_ a4 - Equal-temperament Hz for MIDI note with A4 =
a4_hz(usually 440). - note_
name - Scientific pitch name, e.g.
60→"C4".