Sound Design Toolkit 075 Physically informed sound synthesis for everyday sounds

- Main Page
- Modules
- Data Structures
- Files

Typedefs | Functions
Delay line
SDTFilters.h: Audio filters

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

## Functions
SDTDelay * | SDTDelay_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] | in | Input sample

Returns
  Output sample

void SDTDelay_free | ( | SDTDelay * | x | ) |

Object destructor.

Parameters

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

SDTDelay* SDTDelay_new | ( | long | maxDelay | ) |

Object constructor.

Parameters

  [in] | maxDelay | Buffer 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] | f | Delay time, in samples