Envelope Detector Example

Software questions and issues with the FV-1

Moderator: frank

Post Reply
Sweetalk
Posts: 143
Joined: Thu Oct 15, 2009 5:13 am

Envelope Detector Example

Post by Sweetalk »

There is any example code for an envelope detector?. I want to do an envelope filter and other effects using the picking strenght but I don't know where to start.

Happy Holidays!
frank
Posts: 1281
Joined: Wed Oct 19, 2005 12:26 pm
Contact:

Post by frank »

Basically, an envelope detector is just a low pass filter. I don't have code at hand but basically low pass the signal with a filter that has it's corner at a really low frequency because the volume will change much slower than the frequencies the source signal contains. The resulting output from the low pass is the control signal to the other filter/effect.
Frank Thomson
Experimental Noize
livingston
Posts: 131
Joined: Sun Nov 15, 2009 3:37 pm
Location: New Orleans, LA US

Post by livingston »

I'm finding that something like

absa
rdfx
wrlx

is a good start, though plenty of tweaking is needed depending on the intended app and the particulars of the instrument you're playing into it. The lowpass frequency (rdfx coefficient) determines the speed of the response.

This is exactly equivalent to the analog technique of full wave rectifying then filtering to get the envelope; when I left off the absa (=rectification) it gave me a very ripply filter sound like the "Dirty Bird" pedal:

http://moosapotamus.net/THINGS/dirtybird.htm
frank
Posts: 1281
Joined: Wed Oct 19, 2005 12:26 pm
Contact:

Post by frank »

Ah yeah, forgot to mention to rectify it. Good catch livingston.
Frank Thomson
Experimental Noize
Post Reply