Sound Design Toolkit 075 Physically informed sound synthesis for everyday sounds

- Main Page
- Modules
- Data Structures
- Files

Typedefs | Functions
Envelope follower
SDTFilters.h: Audio filters

## Typedefs
typedef struct SDTEnvelope | SDTEnvelope
| Opaque data structure for an envelope tracker object.

## Functions
SDTEnvelope * | SDTEnvelope_new ()
| Object constructor. More...
void | SDTEnvelope_free (SDTEnvelope *x)
| Object destructor. More...
void | SDTEnvelope_setAttack (SDTEnvelope *x, double a)
| Sets the attack time. More...
void | SDTEnvelope_setRelease (SDTEnvelope *x, double r)
| Sets the release time. More...
double | SDTEnvelope_dsp (SDTEnvelope *x, double in)
| Signal processing routine. Call this function at sample rate to compute the filtered signal. More...

## Detailed Description

One pole envelope follower, with independent attack and release times.

## Function Documentation

double SDTEnvelope_dsp | ( | SDTEnvelope * | 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 SDTEnvelope_free | ( | SDTEnvelope * | x | ) |

Object destructor.

Parameters

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

SDTEnvelope* SDTEnvelope_new | ( |  | ) |

Object constructor.

Returns
  Pointer to the new instance

void SDTEnvelope_setAttack | ( | SDTEnvelope * | x,
|  | double | a
| ) |  |

Sets the attack time.

Parameters

  [in] | a | Attack time, in ms

void SDTEnvelope_setRelease | ( | SDTEnvelope * | x,
|  | double | r
| ) |  |

Sets the release time.

Parameters

  [in] | r | Release time, in ms