|
resonance 1.0.1
|
Filter stage that moves the value a fixed fraction of the way towards its input. More...
#include <animatable.h>


Public Member Functions | |
| FirstOrder () | |
| Construct a stage with indeterminate parameters. | |
| FirstOrder (float flLevel, float flRatio) | |
| Construct a stage with both parameters set. | |
| virtual float | Apply (float flValue) |
| Move mLevel a fraction mRatio of the way towards the value. | |
| virtual float | Unapply (float flValue) |
| Report the mLevel that preceded an Apply() of the value. | |
| virtual void | Print (Dbg &sink) const |
| Write "(level:%.2f ratio:%.2f)" to sink. | |
| virtual void | Save (Stream &stream) |
| Write both parameters to stream. | |
| virtual void | Load (Stream &stream) |
| Read both parameters from stream. | |
| virtual int | Type () |
| Report kFilterFirstOrder. | |
| virtual void | Copy (const Filter *pSource) |
| Copy both parameters from pSource. | |
Filter stage that moves the value a fixed fraction of the way towards its input.
Its RTTI descriptor is at 0x008eef08. It derives publicly from Filter at offset 0. The object is 0xc bytes, and its vtable is at 0x0081e8a8.
The stage is stateful in the same way as ZeroOrder. mLevel is the running output.
|
inline |
Construct a stage with indeterminate parameters.
|
inline |
Construct a stage with both parameters set.
| flLevel | The starting output. |
| flRatio | The fraction of the remaining distance each Apply() covers. |
|
virtual |
Move mLevel a fraction mRatio of the way towards the value.
| flValue | The value to move towards. |
Implements Rnd::Animatable::Filter.
|
virtual |
Report the mLevel that preceded an Apply() of the value.
A unit mRatio divides by zero rather than reporting. That matches the binary.
| flValue | The value the last Apply() received. |
Reimplemented from Rnd::Animatable::Filter.
|
virtual |
Write "(level:%.2f ratio:%.2f)" to sink.
| sink | The diagnostic sink to write to. |
Implements Rnd::Animatable::Filter.
|
virtual |
Write both parameters to stream.
| stream | The stream to write to. |
Implements Rnd::Animatable::Filter.
|
virtual |
Read both parameters from stream.
| stream | The stream to read from. |
Implements Rnd::Animatable::Filter.
|
virtual |
Report kFilterFirstOrder.
Implements Rnd::Animatable::Filter.
|
virtual |
Copy both parameters from pSource.
| pSource | The FirstOrder to copy. |
Implements Rnd::Animatable::Filter.