diff --git a/src/midi_device.rs b/src/midi_device.rs index 2f2ae13..92df3d6 100644 --- a/src/midi_device.rs +++ b/src/midi_device.rs @@ -47,7 +47,10 @@ impl MidiClass<'_, B> { }) } - pub fn send_message(&mut self, usb_midi:UsbMidiEventPacket) -> Result { + pub fn send_bytes(&mut self, buffer: [u8; 4]) -> Result { + self.standard_bulkin.write(&buffer) + } + pub fn send_message(&mut self, usb_midi: UsbMidiEventPacket) -> Result { let bytes : [u8;MIDI_PACKET_SIZE] = usb_midi.into(); self.standard_bulkin.write(&bytes) }