Basic envelope follower in gen~?

Jul 5, 2012 at 8:57pm

Basic envelope follower in gen~?

The title says it all. I think i am quite capable of getting a lowpass filter to work, which would get me some kind of envelope follower right? But i plan to create a compressor in gen~, the only tricky part being to have separate controls for attack/Release. I think i might even have some ideas, but they seem a bit workaround-ish, so, some basic conceptual thoughts would be really helpful.
Any ideas?
Thanks for your Time!

Jul 5, 2012 at 9:10pm

I like to do some combination of short-term averaging followed by the slide~ algorithm (aka RC envelope). Slide~ just uses different coefficients depending on whether the input is greater than or less than the previous input.

You will also have to delay your input since this will introduce some latency. You could also experiment with doing all of this in the decibel domain, which would probably be helpful for a compressor.

Jul 5, 2012 at 9:29pm

Thanks a lot for your reply! Ah, completely forgot i saw the slide~formula a hundred times in the help patch ^^, thanks again!

Jul 6, 2012 at 4:44pm

There’s a re-implementation of slide~ in examples/gen/gen~.slide.maxpat which may help.


You must be logged in to reply to this topic.