Forums > MaxMSP

playing back a sequence with transport at faster tempo than was recorded.

December 14, 2011 | 9:13 pm

This simple patch demonstrates a problem I have if I speed up the tempo of transport. Not all "ticks" values are reported, so not all my data is retrieved from the sequence. How do I solve this problem? I’m a bit stumped.

– Pasted Max Patch, click to expand. –

December 14, 2011 | 10:33 pm

[metro 1 ticks]?


December 15, 2011 | 12:10 am

Yes, but I believe it must be written as [metro @interval 1 ticks].


December 15, 2011 | 6:50 pm

Thank you so much!


December 16, 2011 | 2:53 am

The brute force method of running a metro as fast as possible in hopes of hitting all possible points in time is rarely efficient or advisable. In this case, running a metro at an interval of 1 tick means 960 bangs per second, only a very few of which are actually useful.

The mtr object is made for recording messages and playing them back in the same rhythm as they were recorded:

– Pasted Max Patch, click to expand. –

—–

But mtr is not really designed to play back at different rates. However, you can do it with a little ingenuity:

– Pasted Max Patch, click to expand. –

—–

And if you really need to have your recorded messages be synchronized with precise moments in the transport’s timer, it’s probably better to record the event time along with the event, and then use those time tags to play back the events. But you shouldn’t bang every possible tick looking for events. It’s better to use the time tags themselves to generate the events at the desired time. Here’s one way. (I don’t guarantee that it’s the best way, ’cause I threw it together rather hurriedly, but hopefully it illustrates what I’m suggesting, which is to let the Max scheduler take care of the timing for you, since that’s what it’s designed to do.) The transport must be on, of course, for this way to work.

– Pasted Max Patch, click to expand. –

December 17, 2011 | 7:25 pm

Thanks much for the alternative. I was a bit wary of using metro at the ticks 1 rate, but it seemed to work. The mtr is out of the question for a variety of reasons, but the last example using [timepoint] is illustrative. I was only recently made aware of [timepoint] and hadn’t really absorbed its usefulness in this context.


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