|
Sound Design Toolkit
078
Physically informed sound synthesis for everyday sounds
|
Typedefs | |
| typedef struct SDTAverage | SDTAverage |
| Opaque data structure for a moving average filter object. | |
| typedef struct SDTAverage | SDTAverage |
| Opaque data structure for a moving average filter object. | |
Functions | |
| SDTAverage * | SDTAverage_new (long size) |
| Object constructor. More... | |
| void | SDTAverage_free (SDTAverage *x) |
| Object destructor. More... | |
| void | SDTAverage_setWindow (SDTAverage *x, unsigned int i) |
| Sets the averaging window. More... | |
| double | SDTAverage_dsp (SDTAverage *x, double in) |
| Signal processing routine. Call this function at sample rate to compute the filtered signal. More... | |
Moving average filter, producing as output the average of the last input samples.
| double SDTAverage_dsp | ( | SDTAverage * | x, |
| double | in | ||
| ) |
Signal processing routine. Call this function at sample rate to compute the filtered signal.
| [in] | in | Input sample |
| void SDTAverage_free | ( | SDTAverage * | x | ) |
Object destructor.
| [in] | x | Pointer to the instance to destroy |
| SDTAverage * SDTAverage_new | ( | long | size | ) |
Object constructor.
| [in] | size | Moving average buffer size |
| void SDTAverage_setWindow | ( | SDTAverage * | x, |
| unsigned int | i | ||
| ) |
Sets the averaging window.
| [in] | size | Moving average window size [1,bufferSize] |