creating files out of buffer slices

Tiago Morgado's icon

I have markers on a buffer~ created with a snapshot~ and a zl stream 2 and some more objects on a coll.. I need to record those slices into aiff and wav files in a specific location so that I can instantiate them at a certain point? how can I pick these portions of the buffer and save them.. I posted in this forum because I know there are more advanced guys here but if it is possible to do with js/mxj I would thank the solution, otherwise just script a bit

here is the patch I am working on

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

++ Pasted Max 5 Patch, click to retract. ++
Copy all of the following text within the two blue lines.Then, in Max, select New From Clipboard.

11OLSEN's icon

search for robin price mpg7 encoder mxj or easier: transfer the desired slice into a second temp buffer and save it from there. (I didn't check your patch)
O.

leafcutter's icon
Max Patch
Copy patch and select New From Clipboard in Max.

You might do it like this in Max 6:

or use 'mxj buf.Op'to do the same thing in Max5

Tiago Morgado's icon
Max Patch
Copy patch and select New From Clipboard in Max.

I already implemented it , thank you very much, here is the working algorithm