Hey everyone,
i am trying to recieve midi sysex data over USB. I can succesfully recieve midi note on messages and tried to modify the code, so midi sysex messages get recieved.
Unfortunately i have no luck in getting it to work. Maybe someone has an idea.
recieve_usb() {
MIDI_EventPacket_t ReceivedMIDIEvent;
while(MIDI_Device_ReceiveEventPacket(&Keyboard_MIDI_Interface, &ReceivedMIDIEvent)) {
// check if its a note on event
if(ReceivedMIDIEvent.Event == MIDI_EVENT(0, MIDI_COMMAND_NOTE_ON)) {
//do stuff
}
//check if its a one byte sysex event with content 0x01
if(ReceivedMIDIEvent.Event == MIDI_EVENT(0, MIDI_COMMAND_SYSEX_1BYTE)){
if(ReceivedMIDIEvent.Data1 == 0x01){
//do stuff
}
From the PC i tried to send: F7 00 01 F0
Maybe i am missunderstanding something.
Best regards Alexander