Skip to main content

qualia_audio/midi/message/
mod.rs

1//! MIDI 1.0 message model — the canonical channel-voice / system message set
2//! and a zero-alloc streaming parser with running status (AU-MIDI-MSG).
3//!
4//! Re-exports only. Each message type lives in its own single-unit leaf module
5//! (build to fixed bytes / parse from a caller slice; no heap). The canonical
6//! [`MidiMessage`] `Copy` enum and the [`MessageParser`] streaming parser live
7//! in [`running_status`].
8//!
9//! - [`NoteOn`] / [`NoteOff`] — note messages.
10//! - [`ControlChange`] — control change (CC).
11//! - [`PitchBend`] — 14-bit pitch bend.
12//! - [`ChannelPressure`] / [`PolyPressure`] — aftertouch.
13//! - [`ProgramChange`] — program change.
14//! - [`ChannelMode`] / [`ChannelModeMessage`] — channel-mode messages.
15//! - [`frame_sysex`] / [`sysex_payload`] / [`frame_universal`] — SysEx framing.
16//! - [`MidiMessage`] / [`MessageParser`] / [`parse_stream`] / [`parse_into`] —
17//!   canonical model + running-status stream parser.
18
19pub mod channel_mode;
20pub mod channel_pressure;
21pub mod control_change;
22pub mod note;
23pub mod pitch_bend;
24pub mod poly_pressure;
25pub mod program_change;
26pub mod running_status;
27pub mod sysex;
28
29pub use channel_mode::{ChannelMode, ChannelModeMessage};
30pub use channel_pressure::ChannelPressure;
31pub use control_change::ControlChange;
32pub use note::{NoteOff, NoteOn};
33pub use pitch_bend::PitchBend;
34pub use poly_pressure::PolyPressure;
35pub use program_change::ProgramChange;
36pub use running_status::{parse_into, parse_stream, MessageParser, MidiMessage};
37pub use sysex::{frame_sysex, frame_universal, sysex_payload};