Sound Design Toolkit  078
Physically informed sound synthesis for everyday sounds

Typedefs

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

Functions

SDTEnvelopeSDTEnvelope_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]inInput sample
Returns
Output sample
void SDTEnvelope_free ( SDTEnvelope x)

Object destructor.

Parameters
[in]xPointer 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]aAttack time, in ms
void SDTEnvelope_setRelease ( SDTEnvelope x,
double  r 
)

Sets the release time.

Parameters
[in]rRelease time, in ms