Page 1 of 1

Audio E.Q. peak to trigger a volume ADSR

PostPosted: Sun Nov 24, 2013 4:08 pm
by MegaKrunk1981
I would like to create an vst effect to use in fl studio that allows peaks in the equalizer bandwidth of the audio im inputing to trigger a volume ADSR. So basically anytime the audio eq rises it triggers the ADSR, i dont want to use a set threshold, I simply want any rise or peak in the audio's eq to trigger the ADSR. Maybe that would include some type of velocity parameter. I'm just curious how i would be able to use the eq peak to trigger the ADSR? Oh and I want it to reset everytime the peak falls and goes back up again.

Re: Audio E.Q. peak to trigger a volume ADSR

PostPosted: Tue Nov 26, 2013 5:41 pm
by KG_is_back
So you what the output to be some kind of control parameter?

Re: Audio E.Q. peak to trigger a volume ADSR

PostPosted: Sat Nov 30, 2013 4:56 am
by nix
Maybe you could use 'Bootsy's fast RMS', and compare the stream delayed by 1 sample to the original RMS value.
When original stream is greater than the delayed one, you can send the envelope bool?
Something like this, and the 'delay by one sample' prim

Code: Select all
streamin realtime;
streamin delayed;

streamboolout bool;

float a

a = realtime > delayed & 1

bool = a



This isn't necessarily using an EQ, but it is using velocity. You can certainly EQ the audio though before the RMS detector.