Random Access to Signal-Gated Buffer

hthaw's icon

I'm trying to make a patch that takes an input file - plays it back into an envelope follower with a threshold gate, pokes the sample location (into the indextriggers buffer) when it is "gated" - and then is able to select from those points at signal-rate in another section of the patch, cueing an ADSR~.

I'm trying to do this by sending the index triggers to ping a sample-and-hold, while the durations are being scrolled through by a phasor~ or rand~ object into the sampling inlet of the object.

No surprise, this idea is a little bit too complex for my pea-sized brain. Can anyone help?

5512.seek.maxpat
Max Patch
hthaw's icon

I realized I didn't post the problem, exactly..

It seems that if you're using a signal-rate object to look for small ticks in a long, recorded buffer - it tends to miss things.
Is there a better way to do this?

hthaw's icon

Alright, let me rephrase this in better terms:
Is there a way to do a total analysis of a buffer~ (in advance) and deduce timing points for all amplitude information within a certain threshold?

ullrich's icon

rm.slice~ ?

hthaw's icon

Ah, foiled again by a website under construction..