M4L - save waveform~/buffer~ contents with live set?
Anyone know if there is a way to save waveform~/buffer~ contents so that they are recalled when reloading a set? Any tips / suggestions much appreciated!
Do you use live.drop to load your files into the buffer~ object? I usually do, and then I open up the inspector of the live.drop object and check that the "automated and stored" attribute is set to true. This way, you make sure that the current status of the live.drop object is saved together with the Live set. When you then re-open your Live set, live.drop sends the stored file path to the respective recipients and restores the buffer contents.
You can do this with any live. object which is available in Max. I'm sorry if I got some terminology wrong, I can't access Max at the moment and have to write this post from memory.
Good luck,
Matt
Thanks for the reply, Matt. I'm actually trying to store waveforms that the user draws in the waveform display, not external files that are dropped into Live. I'm using the drawn waveshape to modulate parameters in Live.
Any idea how I could store the drawn waveshape with the set? I suppose knowing that live.drop does save path with the live set - I could automatically save the buffer behind the scenes, with a randomly-generated name, anytime a waveshape is drawn, then feed the path into live.drop so that next time the user loads that session the saved buffer is restored. Pretty clunky, and Ideally I want to avoid having to write files to the user's machine.
The waveshape is actually only 512 samples long. Instead of saving as a buffer behind the scenes, could I save the data to a coll and restore it from there?
There are many different ways for this. I often use a stored multislider for generating audio buffer shapes…
@MATTHIAS --> I don't see any "automated and stored" attribute in the inspector of the live.drop... Am I missing something??
@MATTHIAS –> I don’t see any "automated and stored" attribute in the inspector of the live.drop… Am I missing something??
You could try putting the live.drop through a textedit. You'll need to enable "parameter mode" in textedit inspector, so that its contents get saved with the set. Then on load you bang out the contents to get the path. I did something like this a while ago, but working off memory now, so not 100% sure that's how it was set up.