Extracts amount and frequency of slow amplitude variations in the signal. Specifically designed for the detection of myoelastic activity in vocal input.
| int SDTMyoelastic_dsp |
( |
SDTMyoelastic * |
x, |
|
|
double * |
outs, |
|
|
double |
in |
|
) |
| |
Signal processing routine. Call this function at sample rate to perform signal analysis.
- Parameters
-
| [in] | x | Pointer to the instance |
| [out] | outs | Pointer to an array of four doubles containing the algorithm output (slow myoelastic amount and frequency, fast myoelastic amount and frequency) |
| [in] | in | Input sample |
- Returns
- 1 if output available, 0 otherwise
Destroys a myoelastic feature extractor.
- Parameters
-
| [in] | x | Pointer to the instance to destroy |
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] | x | Pointer to the instance |
| [in] | f | DC offset cutoff, in Hz |
| void SDTMyoelastic_setHighFrequency |
( |
SDTMyoelastic * |
x, |
|
|
double |
f |
|
) |
| |
Sets the high frequency cutoff.
- Parameters
-
| [in] | x | Pointer to the instance |
| [in] | f | High frequency cutoff, in Hz |
| void SDTMyoelastic_setLowFrequency |
( |
SDTMyoelastic * |
x, |
|
|
double |
f |
|
) |
| |
Sets the low frequency cutoff.
- Parameters
-
| [in] | x | Pointer to the instance |
| [in] | f | Low frequency cutoff, in Hz |
Sets the amplitude threshold of the input gate. Myoelastic activity is not computed for signals whose amplitude is below this thresold.
- Parameters
-
| [in] | x | Pointer to the instance |
| [in] | f | Amplitude threshold |