Saving up to 64 chops of an audio file

Calum Vaughan's icon

Hey guys,

So, for a project, I am using second+ order markov chains to create weighted randomness in amen break chops.
Currently, my Markov patch works with MIDI information so I was hoping to do it like this.
I will take my given number of chops (16, 32, or 64) and split the file into this number of cuts. I will then add all of these samples into one sampler in Logic, and will compose a variety of beats using these chops. I will then export the MIDI file and have Markov chain galore.

I have found a program that will split an audio file into x amount of audio files of a given interval. I was just wondering if I could make a Max patch for this?
I could easily make a patch that splits the buffer into x amount of chops and chronologically plays them individually until all are played. It would just be a matter of saving these soundbites. Any ideas?? I haven't worked much with saving/record in max so this is new to me.

Calum

Evan's icon

You can tell a buffer~ object to write its contents as an audio file. You could set up a patch that loads a file, crops the buffer to a slice, writes that slice. Loads the audio file, crops to second slice, then writes that slice. etc.

woyteg's icon

I think buffer~ has the possibility to copy another buffers conents.
I imaging it might be more efficient to load the thing once in buffer 1 and copy it to buffer 2, crop, save, copy, crop, save..

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

Sure, you can keep it all within Max. You can select any 1/64 slice of a buffer~ any time you want in Max. No need to chop, or copy, or anything like that. Just divide the total duration of your sound by 64, then choose the 64th of the sound that you want.