palindrome looping?

coffeencigs's icon

hey...

with the jitter object jit.qt.movie comes the "palindrome" looping action

meaning video will play from loopstart to end and then from loopend to start in reverse..

is this somehow possible to do it with a groove~ or any other max
object?

i cant find anything in the helps... but maybe there is a trick

thanks for your time

Tim Lloyd's icon

There are lots of ways of doing this, here is one of them.

Max Patch
Copy patch and select New From Clipboard in Max.

grigou's icon

Great ! This patch resolve all my troubles with the loop selection in the waveform ! Nice !

By the way, with that version, it's possible to control the speed like we do with the groove~ ? And also, specify a different speed for the forward speed and the backward speed ? Because, when I play a small portion of the buffer contents, the sound is playing faster and I would prefer to control myself the speed value.

Thanks.

kp*'s icon

I didn't look at the above patch, but you can drive play~ with a line and just reverse the line args to go forwards or backwards, and also change the line ags to go at any speed. Just look at the help to play~ the example is really clear. What would be missing from that is the palendrome part, but that is easy enough since line~ send a bang when done, just use that bang to retrigger another $1, $2, $3 --> play~ to go back the other way.

I can't beleeb i just answered someone else's question.

kp*'s icon
Max Patch
Copy patch and select New From Clipboard in Max.

grigou's icon

Thanks to you and your help ! I'll look at your patch.

I thought about play~ like you said, but I'm using groove~ in my big patch, and I wonder if an equivalent works with the groove~ ?

Because first, I use the third output of the groove~ and when it reached 1, I send a backward speed to the sig~ and when it reached 0 I send a forward speed. All this works nice, but when I move the loop selection in the waveform~, sometimes the groove~ gets nuts and the third output doesn't send any signal.

grigou's icon

Your patch work nice with the play~. Very simple.

By the way, that's what I'm trying to do with the groove~ but it doesn't seem as easy :(

Try to change the selection when the groove~ is playing, and sometimes it stops.

Max Patch
Copy patch and select New From Clipboard in Max.

seejayjames's icon

This might help, it's not perfect but is a bit closer.

Max Patch
Copy patch and select New From Clipboard in Max.

I'd like groove~ to optionally send the message "start" at the beginning and "end" at the end of its loop, it seems like using the delta~ and/or edge~ on the sync outlet is a little funky... sometimes it skips over very quick changes at the loop points. I may be missing some simple trick though.