Runner's High
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Properties | List of all members
Accel.IIR Class Reference

A single pole low pass filter with settable attack and release. More...

Inheritance diagram for Accel.IIR:
Accel.DataInput< float > Accel.DataOutput< float >

Public Member Functions

void perform (float f)
 Calculate a simple low pass filter of the form y0 = a * y1 + (1-a) * x0. Only call this if the filter is set to manual. Otherwise, it updates itself.
 

Public Attributes

Accel.StateDetector s
 The state detector the filter uses to decide if it is in attack or release state. If null, the filter uses its own data input stream to decide.
 
float aA = 0
 The filter coefficient when in attack mode. Only set this directly if you know what you are doing. 0.0f = no filtering, 1.0f = "freeze".
 
float aR = 0
 The filter coefficient when in release mode. Only set this directly if you know what you are doing. 0.0f = no filtering, 1.0f = "freeze".
 
bool manual
 If set to true, the filter doesn't update itself. Insetad, you have to explicitly call perform() Useful for irregular input data.
 

Protected Member Functions

void perform ()
 
void performFilter (float x)
 
void Update ()
 

Protected Attributes

float val
 
DataOutput< float > input
 

Properties

float Val [get]
 The current filter value.
 
float attack [get, set]
 The attack time of the filter in seconds.
 
float release [get, set]
 The release time of the filter in seconds.
 
DataOutput< float > InputVal [get, set]
 The object this instance gets its data from. Must be of type DataOuput.
 
- Properties inherited from Accel.DataInput< float >
DataOutput< T > InputVal [get, set]
 
- Properties inherited from Accel.DataOutput< float >
Val [get]
 The current output calue.
 

Detailed Description

A single pole low pass filter with settable attack and release.


The documentation for this class was generated from the following file: