|
|
typedef struct SDTComb | SDTComb |
| | Opaque data structure representing a comb filter object.
|
| |
|
typedef struct SDTComb | SDTComb |
| | Opaque data structure representing a comb filter object.
|
| |
Comb filter, obtained adding to the input signal a rescaled and delayed copy of itself. The filter works both in feed forward (delayed copy added to the output) and feedback (delayed copy added to the input, causing a loop) configurations, with independent gains and delay times.
| double SDTComb_dsp |
( |
SDTComb * |
x, |
|
|
double |
in |
|
) |
| |
Signal processing routine. Call this function at sample rate to output the filtered signal.
- Parameters
-
- Returns
- Output sample
Object destructor.
- Parameters
-
| [in] | x | Pointer to the instance to destroy |
| SDTComb * SDTComb_new |
( |
long |
maxXDelay, |
|
|
long |
maxYDelay |
|
) |
| |
Object constructor.
- Parameters
-
| [in] | maxXDelay | Feed forward buffer size, in samples |
| [in] | maxXDelay | Feedback buffer size, in samples |
- Returns
- Pointer to the new instance
| void SDTComb_setXDelay |
( |
SDTComb * |
x, |
|
|
double |
f |
|
) |
| |
Sets the delay time for the feed forward section.
- Parameters
-
| [in] | f | Feed forward delay time, in samples |
| void SDTComb_setXGain |
( |
SDTComb * |
x, |
|
|
double |
f |
|
) |
| |
Sets the gain for the feed forward section.
- Parameters
-
| [in] | f | Feed forward gain [0,1] |
| void SDTComb_setXYDelay |
( |
SDTComb * |
x, |
|
|
double |
f |
|
) |
| |
Sets the delay time for both sections.
- Parameters
-
| [in] | f | Delay time, in samples |
| void SDTComb_setXYGain |
( |
SDTComb * |
x, |
|
|
double |
f |
|
) |
| |
Sets the gain for both sections.
- Parameters
-
| void SDTComb_setYDelay |
( |
SDTComb * |
x, |
|
|
double |
f |
|
) |
| |
Sets the delay time for the feedback section.
- Parameters
-
| [in] | f | Feedback delay time, in samples |
| void SDTComb_setYGain |
( |
SDTComb * |
x, |
|
|
double |
f |
|
) |
| |
Sets the gain for the feedback section.
- Parameters
-