Releasing Data at Sample Rate

graeme05's icon

I am currently working on a final year degree project based on procedural audio and I've hit a big problem. I need to extract a envelope from a piece of audio (in this case a footstep which is inside a buffer) in order to multiply a [noise~] by that envelope. I have had no problem creating an envelope follower and extracting the data, but when it comes to releasing this data at the sample rate I can't quite figure out how to do it. I've tried using message boxes, [poke~], [peek~] and a [coll].

If anyone has any ideas on this it would be greatly appreciated, even my tutors can't help me so I really hope you can!

Many thanks.

metamax's icon

I'm just learning MSP myself and I assume you will probably do best handling this inside of MSP... so this probably won't be of much help... but the cpuclock object is the most accurate of the timing objects in Max... accurate to millionths of a second. And I know that coll is pretty darn fast... perhaps even 44,100 times per second fast...

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

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

I suggest slide~ or rampsmooth~.

Roman Thilenius's icon

you probably want to use nothing more than [play~] to replay your stored envelope from the buffer.