I am creating a patch which includes two features: The first allows you to load a song, select a sample up to 2 seconds long from it, then save this sample as a new file. This feature is finished and works. The second feature allows you to load two audio samples (the idea being you load in two samples you just created), and merge them together to create a new sample. The whole patch is basically a sample ripper and remixer.
It all works fine except I am struggling to find a method to merge and save the two audio files loaded into the second part of the patch. I have a good offline method of saving a selection of audio, which I have attached as well, but cant get this to work with two buffers together. I've tried various combinations of uzi, defer, and peek objects but none of them worked - however I probably got it wrong! If anyone could help it would be greatly appreciate. To summarise - I need a non-realtime or quick method to merge and save a selection of audio from two buffers into a single audio file.