Forums > Max For Live

How to get numbers into the path object in order to define track and clip slot

Nov 05 2012 | 9:22 pm

Hi grateful for any help. Nearly have my first M4L device which I can actually share.

I have the following object: path live_set tracks $1 clip_slots $2 clip

And what to get data into both $1 and $2

I tried using midi definable number boxes and the "pack" object – but that doesn’t seem to work.

Nov 06 2012 | 12:52 am

I assume you meant to say that you have a live.path object which contains "live_set tracks $1 clip_slots $2 clip" ?

Because that’s not going to work since live.path doesn’t support substitutions.

Fortunately the solution is quite simple: use a message object. A message object does support substitutions like this and providing it with information is as simple as sending a list which contains 2 numerical values.

Here’s an example showing how you can do this. It shows both a ‘message box only’ solution as well as a situation in which pack is used:

-- Pasted Max Patch, click to expand. --

Good luck!

Nov 09 2012 | 3:03 pm

Thanks alot for that – makes sence and a lot closer to realising the patch.

My problem now is that I am trying to separate out the function of firing a clip / from that of setting the track and clip slot number.

My patch is to designed to record a fixed bar length clip of variable length – from midi map able track and slot numbers. The only stuff I have found on firing clips, it is hard to see how to separate out the two functions – But what I want to do is have 2 triggers in the device – One to prime the device and one to fire the initial clip.

I have attached the device below – Once I have sorted this I will publish it, hopefully someone else will find this a useful device. (I couldn’t figure out how to past the device as text).

Hope someone can help – Very nearly there at my first useful M4L patch.

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

Forums > Max For Live