Envelope Detector class (C++)

Type : envelope detector
References : Posted by Citizen Chunk
Linked file : http://www.chunkware.com/opensource/EnvelopeDetector.zip
Notes :
This is a C++ implementation of a simple envelope detector. The time constant (ms) represents the time it takes for the envelope to charge/discharge 63% (RC time constant).

(see linked files)
Comments
from : citizenchunk [at] chunkware [dot] com
comment : due to popular demand, i have added an AttRelEnvelope class to this source, implementing a typical attack/release envelope. for my own taste, i prefer to keep the state variable separate from the envelope detector. however, if you prefer to have it as a member variable, you can easily inherit these classes and add them. (but please remember to add a function for initializing the state before runtime.)

from : citizenchunk [at] chunkware [dot] com
comment : link moved: http://www.chunkware.com/downloads/simpleSource.zip