Forums > Max For Live

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

May 11, 2010 | 2:00 pm

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. –

May 11, 2010 | 2:39 pm

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. –

May 11, 2010 | 2:44 pm

try this

– Pasted Max Patch, click to expand. –

May 11, 2010 | 2:57 pm

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!


May 11, 2010 | 3:08 pm

this seems to work

– Pasted Max Patch, click to expand. –

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


May 11, 2010 | 5:07 pm

Psyko,

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


May 11, 2010 | 6:22 pm

@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!


Viewing 7 posts - 1 through 7 (of 7 total)