Signalsmith Audio's DSP Library  1.6.0
Useful C++ classes/templates for audio effects
Methods
signalsmith::envelopes::PeakDecayLinear< Sample > Class Template Reference

#include <envelopes.h>

Detailed Description

template<typename Sample = double>
class signalsmith::envelopes::PeakDecayLinear< Sample >

Peak-decay filter with a linear shape and fixed-time return to constant value.

This is equivalent to a BoxFilter which resets itself whenever the output would be less than the input.

Methods

 PeakDecayLinear (int maxLength)
 
void resize (int maxLength)
 
void set (double length)
 
void reset (Sample start=lowest)
 
Sample operator() (Sample v)