Audio E.Q. peak to trigger a volume ADSR

Post any examples or modules that you want to share here
Post Reply
MegaKrunk1981
Posts: 1
Joined: Sun Nov 24, 2013 4:00 pm

Audio E.Q. peak to trigger a volume ADSR

Post 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.
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

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

Post by KG_is_back »

So you what the output to be some kind of control parameter?
User avatar
nix
Posts: 817
Joined: Tue Jul 13, 2010 10:51 am

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

Post 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.
Post Reply