rm.slice transients in buffer~ problem

hzd's icon

Hello beautyiful people.

Here is a dropbox link to the project file. This is so, that you can have the same audio file I'm using as I'm working on this.

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

And here is the compressed patcher, if you don't feel like downloading the whole project, although it is very small.

Anyways, my problem.
My passion for the moment, is sampling live sounds and/or music and using one buffer~ to create whole landscapes of sound. Philosofy being, to make a whole performance from one sentence or one phrase. Granular and pads and stuff like that is sorted. Now I would like to quickly find the impulses or transients in this phrase. I've tried with rm.slice and descriptors but I can't seem to get it to work.
Looks like rm.slice is goo at finding startpoints, if they are very clear, like drums, but with this guitar sample, it seems like it's not doing so well.

What I'm imagening, is that I set a threshold level for transient to start and another lower threshold for it to stop. So a tone can ring out and still be in the same "chunk"
I would also like to be able to have a small pre-fade, for instance, if the attack is gentle, I could the "chunk" start a few ms before transient start threshold is reached.

Quite a tall order, I guess, but I'm sure, I'm not the only one who would like this feature.
I have searched maxobjects and this forum, FYI :)

And I would also like this to be done none realtime, as I'm using this live, and not sure what kind of sound I'm going to record, it is nice to set the threshold after the recording.

Roth's icon

The audio file and Maxpatch is missing from the project you have in your dropbox link.

If you upload again, I can take a look at your specific example. Your trouble is probably coming from the fact that rm.slice is doing onset detection vs a more sophisticated spectral transient detector (i.e. it is only detecting amplitude threshold crossings).

rm.slice working with some other objects may still do what you need (I need see the sound file and the patch to give any better advice than that).

hzd's icon

Forgot to "consolidate project", sorry.
Should be good now.

Thx for your reply.

I'll have a second look myself.

Roth's icon

Hey, I'm very sorry. My crazy nomadic life for the end of 2013 I guess distracted me from these forums. If you are still working on this and still need some assistance, let me know.

hzd's icon

Not just yet, but I might just pop up later :)

cheers.