QLab-style looping - video (audio possibly too)

ironside's icon

Hi,
I'm trying to implement QLab style looping of video (but could also be nice to do in audio), either in the playlist objects, or not.

By Qlab style looping, I mean being able to loop a portion of the file:
E.g.
Playhead advances from the file start.
After x amount of time it crosses the loop in point, and continues playing.
When playhead reaches loop out point it loops back to the loop in point (i.e. it doesn't loop back to the top of the file).

Has anyone implemented an elegant way of doing this?

TFL's icon

Just send gettime and getlooppoints for each frame. If time < loopstart then loop 0 else loop 1.
Things gets a bit tricky when you require a specific frame. Also, timing is important when loading a file. You must wait for the file to be loaded before setting looppoints (otherwise it will set loop to 1 as time = 0 and loopstart = 0 when the file is not loaded yet).
But still seems somehow elegant to me.

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

TFL's icon

Or make your own custom looping system rather than relying on the built-in one.
With relative position (0-1):

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

Or frame count:

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

ironside's icon

These are good! I did something driving frames individually with a counter, but I prefer these solutions, and they seem more elegant. Thanks!