Closed krixgris closed 6 months ago
This is likely a UART buffering / buffer size issue.
@jedgarpark iirc you discovered that setting a UART timeout was required for this to work properly? can you fill in some details? I hope it might be effective to get MIDI over UART working on teensy 4.1 too.
@jepler i can double check next week, but iirc it was just the timeout=0.001
argument that needed to be there for it to work.
CircuitPython version
Code/REPL
Behavior
MIDI Input is not working consistently over UART. Code prints any midi event that is not "None" Tried multiple pairs of TX/RX but the same result for all.
Description
MIDI In does not work over UART. Sometimes MIDI messages land on the input, but 1/30 of the time or even less works. I noticed sending midi pitch bend or after touch generated something on the input more consistently. Note On/Off seems to mostly not do anything at all.
Testing this by sending MIDI to the input through an adafruit midi featherwing, hooked up to various midi capable devices. For example Arturia Keystep, as well as USB to midi devices letting me send MIDI with USB from my computer, converted to MIDI DIN.
MIDI Out works as expected on the Teensy though, but MIDI In is erratic at best.
Additional information
I tried the exact same code, as well as the same MIDI Featherwing on my Adafruit Feather M4 Express and it works perfectly through that.