DIN2USB MIDI Bridging isn't working for me - looking for ideas #15
Replies: 3 comments 17 replies
-
By the way, adding a second MIDICoreUSB.send(message) after the sendNoteOn/Off just gives me an additional "blank" message too, see this output from MidiOx for a single keypress and release: TIMESTAMP IN PORT STATUS DATA1 DATA2 CHAN NOTE EVENT I've just deleted and reinstalled the MIDI library, USB-MIDI and MIDIUSB and it is still the same... |
Beta Was this translation helpful? Give feedback.
-
I'm also currently working over this DIN2USB sketch. In fact, I would like to get the oposite, USB2Din, and seems should work, but does not. I tested: Tested with 32U4 bds. Leonardo, ProMicro. Wish that USB2Din also work, but could not get. Any one tested or know how to ? |
Beta Was this translation helpful? Give feedback.
-
Yesssss! Aha! Also came to same conclusion after 1000 tests..... So your running code has to be different. Changing parameters to your added parameters Alternate, with exactly same setup, tried other libraries examples, and surprise... all bidirectional flow were perfect. |
Beta Was this translation helpful? Give feedback.
-
Hello!
I'm basically using the MIDI_DIN2USB example with a Pro Micro (ATmega32U4), but find that the USB only seems to send the following to the PC when I press a note on a serial MIDI DIN keyboard (output from MIDIOx for a single keypress and release):
TIMESTAMP IN PORT STATUS DATA1 DATA2 CHAN NOTE EVENT
0000206F 1 -- 90 00 00 1 C -1 Note Off
000020F8 1 -- 80 00 00 1 C -1 Note Off
If I add in a call to MIDICoreUSB.sendNoteOn directly, it works fine... e.g.
void onSerialMessage(const MidiMessage& message) {
MIDICoreUSB.send(message);
switch (message.type) {
case NoteOn:
MIDICoreUSB.sendNoteOn(message.data1, message.data2, message.channel);
break;
case NoteOff:
MIDICoreUSB.sendNoteOff(message.data1, message.data2, message.channel);
break;
}
}
This results in the following (again this is all for one keypress and release):
TIMESTAMP IN PORT STATUS DATA1 DATA2 CHAN NOTE EVENT
0000212B 1 -- 90 00 00 1 C -1 Note Off
0000212B 1 -- 90 48 7F 1 C 5 Note On
000025C6 1 -- 80 00 00 1 C -1 Note Off
000025C7 1 -- 80 48 00 1 C 5 Note Off
Adding in some serial.print statements rather than sending to USB shows the data is all there in message as expected, but then we can infer that from the fact the sendNoteOn works fine...
I'm really not sure where to go next - does anyone have any ideas? I could break out all the different MIDI messages, but feel like I ought to work out why the original isn't working for me...
Oh, and a manual MIDICoreUSB.sendNoteOn(60, 127, 1); works absolutely fine too.
(I've not tried the other direction yet - i.e. USB to Arduino to DIN)
Thanks,
Kevin
Beta Was this translation helpful? Give feedback.
All reactions