mirror of
https://github.com/robbert-vdh/nih-plug.git
synced 2026-07-01 02:36:54 +00:00
Add boilerplate for a SysEx message trait
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
use midi_consts::channel_event as midi;
|
||||
|
||||
pub mod sysex;
|
||||
|
||||
pub use midi_consts::channel_event::control_change;
|
||||
|
||||
/// Determines which note events a plugin receives.
|
||||
|
||||
9
src/midi/sysex.rs
Normal file
9
src/midi/sysex.rs
Normal file
@@ -0,0 +1,9 @@
|
||||
//! Traits for working with MIDI SysEx data.
|
||||
|
||||
/// A type that can be converted to and from byte buffers containing MIDI SysEx messages.
|
||||
pub trait SysExMessage {
|
||||
/// The maximum SysEx message size, in bytes.
|
||||
const MAX_BUFFER_SIZE: usize;
|
||||
|
||||
// TODO: Conversion functions
|
||||
}
|
||||
Reference in New Issue
Block a user