Sound Design Toolkit  078
Physically informed sound synthesis for everyday sounds
Myoelastic features extractor

Typedefs

typedef struct SDTMyoelastic SDTMyoelastic
 Opaque data structure for a myoelastic feature extractor object.
 
typedef struct SDTMyoelastic SDTMyoelastic
 Opaque data structure for a myoelastic feature extractor object.
 

Functions

SDTMyoelasticSDTMyoelastic_new (int size)
 Instantiates a myoelastic feature extractor. More...
 
void SDTMyoelastic_free (SDTMyoelastic *x)
 Destroys a myoelastic feature extractor. More...
 
void SDTMyoelastic_setDcFrequency (SDTMyoelastic *x, double f)
 Sets the DC offset cutoff. More...
 
void SDTMyoelastic_setLowFrequency (SDTMyoelastic *x, double f)
 Sets the low frequency cutoff. More...
 
void SDTMyoelastic_setHighFrequency (SDTMyoelastic *x, double f)
 Sets the high frequency cutoff. More...
 
void SDTMyoelastic_setThreshold (SDTMyoelastic *x, double f)
 Sets the amplitude threshold of the input gate. Myoelastic activity is not computed for signals whose amplitude is below this thresold. More...
 
int SDTMyoelastic_dsp (SDTMyoelastic *x, double *outs, double in)
 Signal processing routine. Call this function at sample rate to perform signal analysis. More...
 

Detailed Description

Extracts amount and frequency of slow amplitude variations in the signal. Specifically designed for the detection of myoelastic activity in vocal input.

Function Documentation

int SDTMyoelastic_dsp ( SDTMyoelastic x,
double *  outs,
double  in 
)

Signal processing routine. Call this function at sample rate to perform signal analysis.

Parameters
[in]xPointer to the instance
[out]outsPointer to an array of four doubles containing the algorithm output (slow myoelastic amount and frequency, fast myoelastic amount and frequency)
[in]inInput sample
Returns
1 if output available, 0 otherwise
void SDTMyoelastic_free ( SDTMyoelastic x)

Destroys a myoelastic feature extractor.

Parameters
[in]xPointer to the instance to destroy
SDTMyoelastic * SDTMyoelastic_new ( int  size)

Instantiates a myoelastic feature extractor.

Returns
Pointer to the new instance
void SDTMyoelastic_setDcFrequency ( SDTMyoelastic x,
double  f 
)

Sets the DC offset cutoff.

Parameters
[in]xPointer to the instance
[in]fDC offset cutoff, in Hz
void SDTMyoelastic_setHighFrequency ( SDTMyoelastic x,
double  f 
)

Sets the high frequency cutoff.

Parameters
[in]xPointer to the instance
[in]fHigh frequency cutoff, in Hz
void SDTMyoelastic_setLowFrequency ( SDTMyoelastic x,
double  f 
)

Sets the low frequency cutoff.

Parameters
[in]xPointer to the instance
[in]fLow frequency cutoff, in Hz
void SDTMyoelastic_setThreshold ( SDTMyoelastic x,
double  f 
)

Sets the amplitude threshold of the input gate. Myoelastic activity is not computed for signals whose amplitude is below this thresold.

Parameters
[in]xPointer to the instance
[in]fAmplitude threshold