Sound Design Toolkit 075 Physically informed sound synthesis for everyday sounds

- Main Page
- Modules
- Data Structures
- Files

Typedefs | Functions
One pole filter
SDTFilters.h: Audio filters

## Typedefs
typedef struct SDTOnePole | SDTOnePole
| Opaque data structure for a one pole filter object.

## Functions
SDTOnePole * | SDTOnePole_new ()
| Object constructor. More...
void | SDTOnePole_free (SDTOnePole *x)
| Object destructor. More...
void | SDTOnePole_setFeedback (SDTOnePole *x, double f)
| Manually sets the alpha coefficient. More...
void | SDTOnePole_lowpass (SDTOnePole *x, double f)
| Puts the filter in lowpass mode, at the given cutoff frequency. More...
void | SDTOnePole_highpass (SDTOnePole *x, double f)
| Puts the filter in highpass mode, at the given cutoff frequency. More...
double | SDTOnePole_dsp (SDTOnePole *x, double in)
| Signal processing routine. Call this function at sample rate to compute the filtered signal. More...

## Detailed Description

Simple one pole filter.

## Function Documentation

double SDTOnePole_dsp | ( | SDTOnePole * | x,
|  | double | in
| ) |  |

Signal processing routine. Call this function at sample rate to compute the filtered signal.

Parameters

  [in] | in | Input sample

Returns
  Output sample

void SDTOnePole_free | ( | SDTOnePole * | x | ) |

Object destructor.

Parameters

  [in] | x | Pointer to the instance to destroy

void SDTOnePole_highpass | ( | SDTOnePole * | x,
|  | double | f
| ) |  |

Puts the filter in highpass mode, at the given cutoff frequency.

Parameters

  [in] | f | Cutoff frequency, in Hz

void SDTOnePole_lowpass | ( | SDTOnePole * | x,
|  | double | f
| ) |  |

Puts the filter in lowpass mode, at the given cutoff frequency.

Parameters

  [in] | f | Cutoff frequency, in Hz

SDTOnePole* SDTOnePole_new | ( |  | ) |

Object constructor.

Returns
  Pointer to the new instance

void SDTOnePole_setFeedback | ( | SDTOnePole * | x,
|  | double | f
| ) |  |

Manually sets the alpha coefficient.

Parameters

  [in] | f | Weight of the input sample