Buffer~ to audio clip
Is it possible to create an ableton audio clip from what is stored in a buffer~?
The idea is for this M4L plugin to live on the effect chain, and always be recording a 30 second loop. If I like the content that passed through, then I can save the content by creating an audio clip in ableton.
Would be great to know if this is possible as well, especially since buffer~ already has a "writewave" option - it would be great if that exported WAV could be sent directly to an audio clip via the Live API and eliminate the intervening steps. Any ideas?
I have never tried this, but reading programmatically from a buffer is easy enough. Is there an M4L interface to write to an audio clip? I have a video of coding buffer i/o here - if there is an audio M4L api I could make up an example. https://youtu.be/_d0KHvh4V44
Ableton 12.0.5b have this. You can load a file into an audio clip if you give the full path of the audio file.