MIDI events are cut short

I have a unique MIDI device that is a retrokits Rk002 cable. Within the cable, it can do many things, such as what I’m using it for: note to chord feature. It also progresses through stored chords in a round-robin style. So when I (drum) trigger a MIDI note, the result is a chord ( several note on messages) are sent over to a synth. The note offs are a predetermined gate time in the drum brain (0.3 ms roughly). This system works flawlessly outside of Touchdesigner. The issue is hanging notes from the chords. The issue occurs in TD when I hit the trigger quickly. The MIDI OX pics illustrate it better than I can explain.

Here we see two chords being activated by two hits on the trigger. But the 2nd chords note off events are being cut short. The very last D is all we see of the 2nd chords note off events, resulting in hung notes.
TD.MIDI.Error1

Upon subsequent strikes, the note off events are “a chord off”. In other words, its sending note off events for the previous chord.
TD.MIDI.Error2

At first, you might surmise that its the code in the cable, but this only happens in TD, nowhere else. I suspect that MIDI Active Sensing may be cutting off the NOTE OFF events somehow. But I’m unsure. I think it could be sense related because the MIDI chops seem to visually correlate with the cut off times.

I’m not sure how to further test unless I can turn off active sense somehow.? I’m not even sure how you guys could test since the notes are generated “post-Touchdesigner” in terms of MIDI signal flow. But again, the cable works outside of TD, no problem. Ideas?

build 2020.46540 64 bit

Are you using the MIDI CHOPs or MIDI DATs?
The CHOPs may fail to produce off values if they overlap frames, whereas the DATs process every single event in sequence, through the callbacks.

I’d been using CHOPS.

Without changing your system, could you add a MIDI In, or MIDI Event DAT to confirm the messages are being received?
You’ll want to increase ‘Maximum Lines’ parameter to something much larger than 10 for this test.

The signal path, just to clarify, is Trigger _ drum brain - Audio Interface - Touch designer -audio interface - Rk002 Midi Cable ( note to chords) - Korg synth.

I could add a midi event DAT to confirm what TD is seeing, sure. I’ll post it ASAP

The other thing I noticed with the data is that the drum brain is actually sending a Note On with velocity 0, which is common but I can’t help but winder if that’s a factor.

But I keep coming back to it works outside of TD. I should try it with a midi event DAT also