Buffer~ to audio clip

    Max For Live

    Aug 25 2019 | 3:48 pm
    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.

    • Noah Pred's icon
      Noah Pred
      Nov 20 2023 | 10:02 am
      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?
    • Iain Duncan's icon
      Iain Duncan's icon
      Iain Duncan
      Nov 20 2023 | 3:00 pm
      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