Sound Design Toolkit  078
Physically informed sound synthesis for everyday sounds

Typedefs

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

Functions

SDTOnePoleSDTOnePole_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]inInput sample
Returns
Output sample
void SDTOnePole_free ( SDTOnePole x)

Object destructor.

Parameters
[in]xPointer 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]fCutoff frequency, in Hz
void SDTOnePole_lowpass ( SDTOnePole x,
double  f 
)

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

Parameters
[in]fCutoff 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]fWeight of the input sample