1
0
Fork 0

Add boilerplate for a SysEx message trait

This commit is contained in:
Robbert van der Helm 2023-01-31 17:43:52 +01:00
parent 683c96bca0
commit d6b5342c53
2 changed files with 11 additions and 0 deletions

View file

@ -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
View 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
}