M4L - "replace" buffer with current audio clip from Live.
Hi,
I've built a kind of complex stutter effect + looper patch and I would like to make an M4L version of it.
In the main "Max" version of this patch, I record audio into a buffer with poke~ (in fact, multiple buffers, but they record the same thing at the same time). At the end of the recording, the main loop plays, the loop length is sent to 16 phasor units, synchronized, effected etc...
Now, with Live, the process will be different. First of all, I won't need the "main loop" recorder. The loop will be recorded in Live, as a clip.
But I'm wondering: Is there a possibility to "replace" the buffers inside my patch with the Live audio clip, dynamically ? Something like, sending the currently played clip to replace the buffers inside the device. Or should I find another solution, like recording one pass of the clip before the "effects" can be triggered ? I don't have a lot of experience with M4L, only with Max MSP, sorry...
I would appreciate any help.
Thank you.
By modifying my search on the forums, I've found this https://docs.cycling74.com/max5/vignettes/core/live_api.html
I guess I've been too impatient. The answer is somewhere on this page :)
But if somebody has code to share, I would appreciate the time gained..
Thanks ! ;)
You might take a look at my 'Anti-Warp' device which replaces dynamically the buffer dependent on the playing Clip -
https://www.ableton.com/en/packs/gratis-hits/
Oh, excellent ; Thank you Kleine !