MIDI signal makes output flicker when time restarts

Hi all.
My first post and quite new to TouchDesigner, really enjoying it so far!

I have connected a DJ mixer with MIDI signals to TouchDesigner, mapped everything and routed it all to a circle TOP. I can control size and color fine with the faders, so all ok on that end. But the circle TOP flickers of and on again when time restarts, like TouchDesigner have to re-sample the midi values or something. I hooked up a record CHOP and can see that the signal drops out when time restarts. Is this a known problem and is there a fix? Searched and searched, but cant find any mention of this. Might be me using wrong terminology or something.

Any help is greatly appreciated and sorry if this has been posted about before.

Hi @detjet,

it sounds like you might be merging timesliced and non timesliced channels that eventually result in what you are seeing.
Can you post a reproducable example here?

cheers
Markus

Hi @snaut.

Thanks for taking time to reply and try to help, very much appreciated!

Its a A&H Xone:96 with two USB connections, and would like the template for this to work regardless of usb1 or 2 being connected, hence the join. The select CHOPS is to split and rename the 4 faders, x-fader and buttons.

The idea is that input from the DJ will affect visuals in future projects. Also planning to use a couple of MIDI controllers as an interface for the audience to interact with visuals, so would be cool to have this work without it flickering now and then.

Thanks!
Xone96 midi map template.5.toe (4.9 KB)

Hi @detjet,

the Join CHOP is the issue as it joins multiple values into one longer channel with multiple samples. The timeline now plays through all samples and depending on the extend condition of the CHOPs will hold the last value or cycle the values that are outside the CHOPs range.

This means that with a value coming in on the first XZone Map but none on the second, on the first frame of the timeline it will set the circle to the values coming from the first input to the join while from the second frame onward, it will use the second midi input.

For your particular example, you can make use of the Bind CHOP which takes 2 inputs and grabs the value from the input channel that last changed.

Hope this helps
cheers
Markus

Hi @snaut.

That did the trick! Thanks a bunch!