Skip to main content

Crate aura_midi

Crate aura_midi 

Source
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§

MidiBuffer
Ordered MIDI events for one audio block. Sorted by MidiEvent::sample_offset.
MidiEvent
One MIDI message at a sample offset within the current block.
MidiMessage
One MIDI message. Channel is 0..=15 for 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§

MidiStatus
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".