Unfixed lenght midi Looper

Carlo Cattano's icon

Hi there . I just came to a new problem in max4live that Im hoping to get my head around.
Im trying to make a midi looper/delay , but at the moment I can only sincronize to Live tempo with pipe and a transport value , so the maximum is 1n , then the limitation is obvious . Yes , i can still loop/delay midi but I cant make cycles bigger than 1n that will be synced .
Another option is with phasor~ 1n @lock 1 . to a seq~ But then same issue , a maximum of 1n will be accepted

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

I never used much seq~ either , but if I find a way to sync with phasro~ I think I can manage it on my own .
Im aware that it needs a counter that counts how many times the 1n bar passed already , and quantize the stop of recording to a point in sync with live .

Thanks !

double_UG's icon

you can work with bbu (bars.Beats.Units) [pipe 0 0 4.0.0 @quantize 1.0.0] = delay 4 bars

Carlo Cattano's icon

oh How convenient , never used it and totally missed it . Thanks a lot .
Im trying to implement this into a midi delay with pipe , but is getting a bit messy . I might start to learn seq~ instead .
Thanks