Sandwich
Member
Happy Thanksgiving!
I'm running a MIDI router that cross-talks between DIN ports, USB to PC, and a USB Host. Everything works great, I can filter messages, and send messages any direction from any source EXCEPT I can not send any note data to my USB Host. I have only tried notes so far. I can read from the Host just fine and send those messages to any other devices (except other MIDI Hosts). I have this same issue when a device is plugged directly into the USB Host or when a hub is connected with multiple devices. I can still read from all the devices when there is a hub with multiple USB Host devices connected. I can both send and receive to the non-host USB to a PC just fine.
The latest thing I was trying is sending note messages out to the USB Host directly in the program loop, and I still can't get anything through to my equipment. I have tried using these variations (separately):
I attempt to send to all 10 MIDI Hosts (midi01 thru midi10), I have tried with variables and entering numbers directly in the send functions, and as I mentioned before have tried adding functions directly to the loop() so that it's always sending to the midi device. All reads work, and all other sends work throughout the program.
This is the first time I've programmed this device since there has been an update to both Arduino IDE as well as teensyduino. Sometime around February when I was last messing with this device I was able to both send and receive to the USB Host as a single device but had not gotten it working as a hub yet.
I'm running a MIDI router that cross-talks between DIN ports, USB to PC, and a USB Host. Everything works great, I can filter messages, and send messages any direction from any source EXCEPT I can not send any note data to my USB Host. I have only tried notes so far. I can read from the Host just fine and send those messages to any other devices (except other MIDI Hosts). I have this same issue when a device is plugged directly into the USB Host or when a hub is connected with multiple devices. I can still read from all the devices when there is a hub with multiple USB Host devices connected. I can both send and receive to the non-host USB to a PC just fine.
The latest thing I was trying is sending note messages out to the USB Host directly in the program loop, and I still can't get anything through to my equipment. I have tried using these variations (separately):
Code:
midi01.send(type, data1, data2, channel);
midi01.send(mtype, data1, data2, channel); //using mtype conversion like for DINs in MIDI examples
midi01.sendNoteOn(data1, data2, channel);
I attempt to send to all 10 MIDI Hosts (midi01 thru midi10), I have tried with variables and entering numbers directly in the send functions, and as I mentioned before have tried adding functions directly to the loop() so that it's always sending to the midi device. All reads work, and all other sends work throughout the program.
This is the first time I've programmed this device since there has been an update to both Arduino IDE as well as teensyduino. Sometime around February when I was last messing with this device I was able to both send and receive to the USB Host as a single device but had not gotten it working as a hub yet.