Sound Design Toolkit  078
Physically informed sound synthesis for everyday sounds

Typedefs

typedef struct SDTDelay SDTDelay
 Opaque data structure for a delay line object.
 
typedef struct SDTDelay SDTDelay
 Opaque data structure for a delay line object.
 

Functions

SDTDelaySDTDelay_new (long maxDelay)
 Object constructor. More...
 
void SDTDelay_free (SDTDelay *x)
 Object destructor. More...
 
void SDTDelay_clear (SDTDelay *x)
 Clears the buffer, therefore silencing the delayed signal.
 
void SDTDelay_setDelay (SDTDelay *x, double f)
 Sets the delay time. Fractional values are allowed. The delay time can be continuously changed over time without audible glitches. More...
 
double SDTDelay_dsp (SDTDelay *x, double in)
 Signal processing routine. Call this function at sample rate to output the delayed signal. More...
 

Detailed Description

Delay line, supporting fractional and time-varying delay lengths.

Function Documentation

double SDTDelay_dsp ( SDTDelay x,
double  in 
)

Signal processing routine. Call this function at sample rate to output the delayed signal.

Parameters
[in]inInput sample
Returns
Output sample
void SDTDelay_free ( SDTDelay x)

Object destructor.

Parameters
[in]xPointer to the instance to destroy
SDTDelay * SDTDelay_new ( long  maxDelay)

Object constructor.

Parameters
[in]maxDelayBuffer size, determining the maximum delay length, in samples
Returns
Pointer to the new instance
void SDTDelay_setDelay ( SDTDelay x,
double  f 
)

Sets the delay time. Fractional values are allowed. The delay time can be continuously changed over time without audible glitches.

Parameters
[in]fDelay time, in samples