|
Sound Design Toolkit
078
Physically informed sound synthesis for everyday sounds
|
Typedefs | |
| typedef struct SDTTwoPoles | SDTTwoPoles |
| Opaque data structure for a two poles filter object. | |
| typedef struct SDTTwoPoles | SDTTwoPoles |
| Opaque data structure for a two poles filter object. | |
Functions | |
| SDTTwoPoles * | SDTTwoPoles_new () |
| Object constructor. More... | |
| void | SDTTwoPoles_free (SDTTwoPoles *x) |
| Object destructor. More... | |
| void | SDTTwoPoles_lowpass (SDTTwoPoles *x, double fc) |
| Puts the filter in lowpass mode, at the given cutoff frequency. More... | |
| void | SDTTwoPoles_highpass (SDTTwoPoles *x, double fc) |
| Puts the filter in highpass mode, at the given cutoff frequency. More... | |
| void | SDTTwoPoles_resonant (SDTTwoPoles *x, double fc, double q) |
| Puts the filter in resonant bandpass mode, at the given center frequency and Q. More... | |
| double | SDTTwoPoles_dsp (SDTTwoPoles *x, double in) |
| Signal processing routine. Call this function at sample rate to compute the filtered signal. More... | |
Two poles filter, configurable as lowpass, highpass or resonant bandpass.
| double SDTTwoPoles_dsp | ( | SDTTwoPoles * | x, |
| double | in | ||
| ) |
Signal processing routine. Call this function at sample rate to compute the filtered signal.
| [in] | in | Input sample |
| void SDTTwoPoles_free | ( | SDTTwoPoles * | x | ) |
Object destructor.
| [in] | x | Pointer to the instance to destroy |
| void SDTTwoPoles_highpass | ( | SDTTwoPoles * | x, |
| double | fc | ||
| ) |
Puts the filter in highpass mode, at the given cutoff frequency.
| [in] | fc | Cutoff frequency, in Hz |
| void SDTTwoPoles_lowpass | ( | SDTTwoPoles * | x, |
| double | fc | ||
| ) |
Puts the filter in lowpass mode, at the given cutoff frequency.
| [in] | fc | Cutoff frequency, in Hz |
| SDTTwoPoles * SDTTwoPoles_new | ( | ) |
Object constructor.
| void SDTTwoPoles_resonant | ( | SDTTwoPoles * | x, |
| double | fc, | ||
| double | q | ||
| ) |
Puts the filter in resonant bandpass mode, at the given center frequency and Q.
| [in] | fc | Center frequency, in Hz |
| [in] | q | Q factor, in 1/octave |