Forums > Max For Live

track status display

March 11, 2011 | 10:00 pm

hi guys

how do I observe or set the path to track status display in maxforlive, so that I can count the time that a clip will take until the end, or even count loops, etc.?

if you can figure it how can you make a copy compressed of it?

thanks in advance
tiago morgado


March 12, 2011 | 10:57 am

You can get/observe clip properties like ‘length’ and ‘playing_position’.

For more details see documentation.

http://www.cycling74.com/docs/max5/refpages/m4l-ref/m4l_live_object_model.html


March 12, 2011 | 2:12 pm

thanks.. I’ve already been able to do that for length with the code below.. I was just you kinda waiting for an excusive to start with M4L LOM, and now that I have some ideas in mind, I have the perfect reason to start dealing with it.

– Pasted Max Patch, click to expand. –

March 12, 2011 | 3:08 pm

by now, I am tracking playing position of the clip with a get (using the live object) doing something like this

– Pasted Max Patch, click to expand. –

the problem is that I don’t actually want to use the metro + get method.. what I want to do is to observe the whole thing.. the reason why prefer to do this with observe, is that I will be saving a small amount of cpu usage.. the problem is that I am still very in the beggining with all of this (not maxmsp, but m4l lom/api).. can’t you guys give me an hint of how I can use live observe to do this thing properly? by now I have done this like that.. but it’s not working.. I know that it has something to do with the way as I am adressing playing_position method.. so if you can help it would be nice

– Pasted Max Patch, click to expand. –

March 12, 2011 | 3:42 pm

Try this.

– Pasted Max Patch, click to expand. –

March 12, 2011 | 4:39 pm

thanks broc


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