Topic: Building a MIDI->OSC bridge with Touchdesigner for my Launchkey mkii
I had help from this forum in making this design, so I thought I would share it in case it is useful for other people.
From looking at https://www.forum.rme-audio.de/viewtopic.php?id=24437, I had built a small control using MIDI-OX to translate the commands from my launchkey into the correct midi parameters for TotalMixFX, and that worked well enough, but I wanted the better control available from either Mackie protocol or OSC.
I had tried the TotalMix app for ipads, but didn't really want to use a touchscreen when I had all these buttons and dials available. Then I saw that touchdesigner has a free non-commercial license, and has some strong MIDI + OSC nodes plus python programmability.
There's clearly more that can be done, but mainly what I wanted was fader control of the software-playback layer, plus the ability to mute channels and do speakerB/dim settings, so that's what I've built for myself so far.
The architecture of it is:
1. A midiin1 listening to the main port of the launchkey. In the "midiin1_callbacks", I have a python script that sends OSC messages to Totalmix.
2. An oscout1 node I use to send the messages to Totalmix.
3. An oscin node I use to receive messages from Totalmix. I have a callback python script here to send MIDI messages to the secondary Launchkey MIDI port, which is how it make colors for the buttons to let me know what mutes are active, or which section I'm controlling (in/playback/out).
I'm not sure if I can attach the touchdesigner file to this post, so I'll put the code in followup posts.