I've created a patch that takes recorded input from a user, and then by detecting amplitude transients adds a 'slice' for each to a coll. The end result is a coll with the start/end times (ms) of each 'slice'. I can then use groove~ or play~ to play each segment from the defined start/end point.
I now want to copy each slice individually into a PolyBuffer so I can sequence and manipulate them further. As the 'slices' are each being read from the original recorded master buffer, and are not themselves individual buffers, I am having trouble putting each into a PolyBuffer.
Does anybody have any suggestions as to how this can be done?
I wish Max had more functionality for automated adding of buffer objects etc, as I would just count the number of slices, create X instances of blank buffer objects, copy the original recording to each, and then 'crop' each buffer respectively. I could then add all of these to a buffer. However maybe I'm too used to standard programming !
Thanks for any suggestions!