Slide~ with linear, exp, or log response
Hi All,
I'm really struggling with how to make an envelope follower like slide~ that could have a linear, exponential, or logarithmic response. Ideally this would end up looking something like the makenoise Maths (http://www.makenoisemusic.com/maths.shtml) module , but my actual maths is so damn weak that I can't figure out how to do this in msp or gen. The best idea i've had so far would be to generate three parallel envelopes: one linear, one exponential, and one logarithmic, and then somehow interpolate between them - but i've still no clue as to how I would make an envelope follower with an exponential response. Could this be done with scale in gen?
Sorry I'm really starting from nothing here, does anyone have any ideas?
Have a look at Gregory's patch here:
Lots of functions for wave-shaping in Gen; I'm less sure of how they might apply to an envelope follower though.
HTH
Brendan
i believe it is realtive simple.
i you want to build it around slide msp, you would have to do a new scaling range every sample isnt it? that is quite a lot of data. :)
you could rather just scale to log, then use slide, then scale the raqnge and distortion back to the original.
the effect slide msp had on the signal is now distorted!
-110
no wait, thats not the same. it will only work fine with signals of the range 0. 1.
Not sure if this is helpful, but have you checked the third tab of the scale~ helpfile? Could you just run Rampsmooth~ through that with different exponents to change your envelope?
Try this. It was posted four days ago. It's a USG, so it's close to half a maths, in a sense.
Wow, thanks Wetterberg, how did I miss this?! You're right, most of the heavy lifting has already been done here, the rest of the features to make it more 'mathsy' are pretty light. I suppose one way to change the exponential shaping without adding timing discontinuities would be to keep the envelope following linear and use scale in gen to add the curves, that might add some nasty pops though if you use to module the amplitude of an audio signal and you change it when it's on. I'll have a play over the next few days and post whatever comes out in that original post.
Really nice patch. But how do I get it to retrigger? I doesn't accept a trigger in while there is an output.
I've tried fiddeling with the patch, but I'm not sure what is really happening there.
thx