Add boilerplate for a SysEx message trait
This commit is contained in:
parent
683c96bca0
commit
d6b5342c53
2 changed files with 11 additions and 0 deletions
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
use midi_consts::channel_event as midi;
|
use midi_consts::channel_event as midi;
|
||||||
|
|
||||||
|
pub mod sysex;
|
||||||
|
|
||||||
pub use midi_consts::channel_event::control_change;
|
pub use midi_consts::channel_event::control_change;
|
||||||
|
|
||||||
/// Determines which note events a plugin receives.
|
/// 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
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue