I have a question about Assigning buttons from a midi device to buttons in touch designer.
I’m working on making an control panel for a show that I’m going to do in October.
I followed the tutorials and it’s clear how to map the midi device in the manager, import the data with a midi map in and assign the data to which ever parameter you want.
Also when making the buttons and sliders in touch designer goes with out a problem.
But how can you assign the various buttons of the midi device to the buttons you made in the control panel?
Panel Components (buttons, sliders, etc) have an Override CHOP parameter for this. Reference the CHOP with your MIDI channels here, and you also need to name your channels to match the panel values you want it to effect. The Select CHOP is the most flexible way to rename channels.
For example: to control the u panel pvalue of a slider, rename your channel to “u” right before you dragndrop the CHOP onto the slider’s Override CHOP parameter.
Does this work for actually emulating a button click though? by doing this override chop are you not changing a parameter of the panel component compared you changing the state of the button?
For various reasons I don’t like using the Override CHOP feature of panels (like it’s hard to initialize, mute and hard to override the override), and it tends to over-cook.
I decouple it by using a CHOP Execute DAT after the CHOP containing the MIDI slider/button values. The CHOP Execute DAT contains a simple script that does a “click” command on the slider, something like “click slider1 $arg3”.