#include <CATFilterAttackDecay.h>
f(x) = coef * f(x-1) + (1-coef) * x, with seperate rising/falling coefficients for attack/decay. First value is now filtered against 0.
Definition at line 25 of file CATFilterAttackDecay.h.
Public Member Functions | |
CATFilterAttackDecay (CATFloat32 attack, CATFloat32 decay) | |
virtual | ~CATFilterAttackDecay () |
virtual void | SetAttack (CATFloat32 attack) |
virtual void | SetDecay (CATFloat32 decay) |
virtual CATFloat32 | GetAttack () |
virtual CATFloat32 | GetDecay () |
CATFloat32 | Filter (CATFloat32 rawVal) |
Protected Attributes | |
CATFloat32 | fAttack |
CATFloat32 | fDecay |