|
AudioDataLib
A C++ library of classes supporting a variety of audio-data tasks.
|
#include <Function.h>
Public Member Functions | |
| LinearFallOffFunction (double decayTimeSeconds) | |
| virtual | ~LinearFallOffFunction () |
| virtual double | EvaluateAt (double timeSeconds) const override |
Public Member Functions inherited from AudioDataLib::Function | |
| Function () | |
| virtual | ~Function () |
| virtual double | EvaluateDerivativeAt (double x) const |
Public Attributes | |
| double | decayTimeSeconds |
| This is the time, in seconds, it will take for the function to go to zero. | |
This function is used to scale a wave-form over time so that it doesn't just obrubtly end, causing an unwanted sound artifact.
| LinearFallOffFunction::LinearFallOffFunction | ( | double | decayTimeSeconds | ) |
|
virtual |
|
overridevirtual |
Derived classes should override this method to provide a means of evaluating this function at the given value, typically representative of time in this library.
Implements AudioDataLib::Function.
| double AudioDataLib::LinearFallOffFunction::decayTimeSeconds |
This is the time, in seconds, it will take for the function to go to zero.