Diagnose MIDI DIN In Throughput Issue

Status
Not open for further replies.

yeahtuna

Well-known member
I'm seeing dropped MIDI messages on my custom Teensy 3.2 (using MIDI library 3.2). I've done some tests with a loopback cable, sending messages out the MIDI Din Out and straight back into the MIDI In Din. If I send messages at a rate of one messages every 30 ms, I typically get zero dropped messages. But as I lower the interval between messages, problems occur. MIDI over a cable should be able to get close to one message every ms.

Any suggestion as to where I might look to resolve this issue? Is there a buffer that messages are saved to? Would I get better results by using a callback instead of check MIDI.read()?

Rob
 
Disregard. Upon further testing, I was able to get my MIDI circuit running flawlessly at 1 message every ms, so my issue is somewhere in my own code.
 
I've traced to problem down to checking value usb_configuration. Any idea why this would take so long?
 
Status
Not open for further replies.
Back
Top