How can I set track and clip values of a live path message?

May 11, 2010 at 2:00pm

How can I set track and clip values of a live path message?

I want to be able to read some numbers for a clip and a track (lets call them C and T), and then set a live path from these numbers like this:

path live_set tracks T clip_slots C

I want to set the message using the right inlet, then send the message using the left inlet. However, I have tried various things and just cannot figure this out at all. At the moment I am prepending each number with text, but I cannot combine the two parts to create one message. There is probably a far simpler way to solve this problem though.

My patch is below. Feel free to tell me I am being stupid because I am a Max noob :-)

– Pasted Max Patch, click to expand. –
#50321
May 11, 2010 at 2:39pm

Managed to figure it out myself, you need to use tosymbol and fromsymbol objects in combination with a pack object and it works like a dream. Working patch is below:

– Pasted Max Patch, click to expand. –
#180511
May 11, 2010 at 2:44pm

try this

– Pasted Max Patch, click to expand. –
#180512
May 11, 2010 at 2:57pm

but i dont want to send the message every time I send it, I need to be able to independently set the message and then independently send the message. but your one works great if you want to send the message every time!

#180513
May 11, 2010 at 3:08pm

this seems to work

– Pasted Max Patch, click to expand. –

then just bang the 2nd message box with your ‘overdub’ number

#180514
May 11, 2010 at 5:07pm

Psyko,

nice solution. But you may replace [pack] with [pak].
Thus it will work also if only the clip number is changed.

#180515
May 11, 2010 at 6:22pm

@Psyko – Yeh this is a much better solution than mine, just the meesage from the first message box should be sent to the right inlet of the second message box and it is job done. Thanks for your help people!

#180516

You must be logged in to reply to this topic.