Max for Live to TouchDesigner Utility

When using Live to control TD, one can certainly use MIDI notes and controllers.

For controllers, however, it’s more convenient to use the envelopes in Live’s MIDI clips, since you can edit real names and scaled values. Below is the Max compressed version for a Max for Live device that shows a technique I’ve been playing with. Just copy the compressed text, open a new MFL MIDI device, paste, and save. In this example, the envelope in the clip editor is named “opacity”, and TD should receive the OSC message “/opacity ”.

Basically you build a MIDI device on your track in Ableton, using Max’s Live objects, give them names so they’ll show up nice in the clip’s envelope editor, and send their name and value to an OSC in CHOP.

How does this work for you? Any ideas for improvements?

Best wishes,
Les


----------begin_max5_patcher----------
718.3ocyWssahCCE74vWgkk5arYcbHgv919crppxgX.WErircXosp+6quj.o
sDHMkhVgDjb7w1imYrOlWlD.yE6oJH3Wf+.BBdYRPfKjMPPy6Avsj8KKIJWZ
vR1NZnpjUPkvo912QjbxVpqYQEYIS+TaSUD8xML95GjzkZ+zfiCQSAoogISA
wKrOuHIDAtuoGrB+3j+3ORNNJRy3qoxGnbRdoalhZZiWuUTqKoZG7vMQ8gzO
UQ8SJDNE.WUJHFPb+wdx3scrc3TjczhGHZsjkWqoGeR0vIMjhcUWVSEqZC2F
uKZKE708vLuIO0FgTOjDaWPnSz1ViL4VIHT3oZulyzJ8Sd1Kw29qSlb7G22u
NY5.MBb5eMhTqDoo6c5KTCxAqNi7GkDYU9YoVkOJxYFv3NFfUBtVwd1Kx31k
RWeQbF7rh+gUID1mcHmvWeQKw0iTdtLTRWeYVIyJcfrQQJoeYRwRH8vE3qGW
npjLtdE3m2o.2M.mRDJa7VEbOVknOAq7syHFOXwVpRAVS04LdgVbFVwch4bG
iDmNBFIJ46hQth6Wjl4jBtHWfiRbNDGmjMeLrwr+u20zszZcFdNBgRhW7A9p
xVl5RllX2FnYiglhOMKE+IYo9YpV2mjpzBYSmhxBmmMeQ7rC8wWc1fHyJ6Lk
lO08EPW8Jc0EUJJuvPYFJ07IxV5EgFvIZlq8X+Y1hwbh1AGqM2ClieKYjxSq
RndUod295vi4pd72e2P2hxF+szkRTKW1J0MWcCbbUUXTUFmnYBdmbrkw6jzF
VQAk2EvELkU8JNHeeP2FJbd2T0CdRus3I5B3A+1j9VwS5.3G7MTuF.8jbSQC
9BnwVH4FAG7PLy3aGdhFzl8aGblMz85iYuk+jQRU0NpT0LlNnXJY7nPZec9T
2qLt+UWQRSgscr178QHRS4Aso1PsudGbep+nc3Vg4OWyqYMmJal4Wm7OZMll
PA
-----------end_max5_patcher-----------

Why didn’t I think it before instead of using midi notes and midi control change?

It would be useful to change the name with gui.
I tried without success. I am able to change it but Live continues with the old name it gets at instantiation time.


----------begin_max5_patcher----------
1226.3oc0ZtsiahCF.95To9NfPp2rJaVe.ig8t9bTMZDI3jwUD.YbRSa09tu
9.vPxv.loILYzHkDa9C76u+i1Y98m+zB+0EmXU9d+q227Vr32pYVXlSOyhlI
V3uO4zlrjJif94reTr969KquljcRZlW5s1qpc57C644YLo46.alkmZDU88+a
bqnkIxMOwy28nfsQZ0kXBZEYoGJNbEXoGFpeEAVA7dny8u3fr4AfZltR9yLl
4Yzd6shI+YIydu8WmjuyeoRBuGLh7ee9S52UuszYHrmUUkri8RJbLQjmrm4I
YURR+z.0CMhbfFXTjlCvH5X3.NEb7mfgME62yxkuDCUaD7RoZY3oog6dEjg3
.D.rKcqaADZeK50AAnGP7lWrulieofUxxS8pM8tuXg.WhAHVqNfb2X0uRY.f
vgV9T0R8iYJfGKSDJ+.IS7XVQ9tdRGjwyYaJNjKOSwGMIAD4.vZxRD.Z31cq
+RSfSO.aBdQXW7hpChnw2+oN0HXhYMCFLQBkR5j0jFMqIMe0k4e4U8TgPNwU
JlNzJkDPe+VoWorhgCVBLHlbemU70nfP8zzoAOIcuoHB0AT.snHDbUQwbTbv
3++VZVjD3.WtC6VbB0AZYyDRBhbIvotPPD7tgJZLvR48jhb.2hdA.zkvED01
NoIdgL..BF..OanX4IqsWELXvDWWC3OOtJiejspJimxDsJSSe2sH6avGlP+C
CluEEFawkwsAaFn.43IY5iPvAIz1rhD0Ss8FWkbjk9XhTJ3qU4Ne9SU0.pgP
ZBjcfUrsY91KzUMZ6rpOLcljOG68BmvyjqQ+A8cw8JylYMabz5QfC4bYqmEo
VfZWhm+v0tP71IzpQjCNFHro+RHDaFgdake1VjKq3+x5jfVAFsBciuxUmQ+J
akfsy8RQ3PWfTXfFRQyCitUcvTUJTIw158Oeox6KacGQHm7ihQN5GAuJL5Fv
GkKYptsGucL4ZddprXBIgG1MBa2KK0fHb3GVDYaBdH3z619GrMXL15x.vZ5X
2yyGsXrtUvODSo.P.IHpmFE00.mfWUjCdUgFtESGia3qF2rrqQFgp9ZgnV.0
lUoQzXbvksAnVNJEend.5skraWwzCokU5d1M8Sp9CpqzC.mgjVa5WE7jL2sa
n.GxXhQA1y4JdLKGXBVtK3j8VZNutK+URLZl9BWPuphChMM16lS40qixkpL3
77DIuHuiT3yE5IdZJK+LsOkWosqoOaX60d5tdo1tfGbL8RelickZtTLfSJ1L
SLjSJFYTEaOOsrP0LQsOEst9VXjcGZf9FFEa1+J0LodPG83ZuNwNsNgyuAf3
TnTz7qXgNQr2AEi5DwBm+f7Hmx9PlehoULznJFc1ULTjKlRcsyYVwvtXIilc
OLmRhM+QjXmRUfdGTLmhHQuCFxHmygMuDKvoFUHyeph.mZTIb9StRBtMcPQr
+2QfsGzDDFa1SLlP6NLFzoCJ8faWGTDmJ6d4NClCCfaJF9NUwBl+l9MQIilV
z3XCmeEC3jhMuDK51DiGGhrmBX8uik8+ErKFFC6FiCcMFude9IkkGYhpZM0t
B82m78BgdLcocLO2N1dRZ9B1QdyWwdHQ9IhMOwkrMxC1C1w+TX8QZ3uuHkIx
OvMG3fZFiNnd4+EO3PzM
-----------end_max5_patcher-----------

How I could change the name at instantiation time with, for example, the track name?

Thanks you,
arm

Althought this would probably better discussed on the cycling74 forums:
You need to enable “Parameter Mode” for max objects (such as your [textedit]) if you want live to have access to its status (so it is saved with the live set.
To get the name of the track (which is really handy for OSC addresses) look at the help of the Live API and LOM (Live Object model), which can be found in the max/msp help system.
cheers!

Thanks for checking it out! It’s a work in progress…

Yes, armonico, as far as I can tell, there is no way to change the name of a parameter once the device is loaded.

For now, this technique might be useful if you knew what you wanted to control in TD, so you could build a custom MFL device for that setup.

Have you ever tried live grabber? it was made for vdmx but works fine with TD