Sound Design Toolkit  075
Physically informed sound synthesis for everyday sounds
SDTAnalysis.h File Reference

Go to the source code of this file.

Typedefs

typedef struct SDTZeroCrossing SDTZeroCrossing
 Opaque data structure for a zero crossing rate detector object.
 
typedef struct SDTMyoelastic SDTMyoelastic
 Opaque data structure for a myoelastic feature extractor object.
 
typedef struct SDTSpectralFeats SDTSpectralFeats
 Opaque data structure for a spectral features extractor.
 
typedef struct SDTPitch SDTPitch
 Opaque data structure for a fundamental frequency estimator.
 

Functions

SDTZeroCrossingSDTZeroCrossing_new (unsigned int size)
 Instantiates a zero crossing rate detector. More...
 
void SDTZeroCrossing_free (SDTZeroCrossing *x)
 Destroys a zero crossing rate detector. More...
 
void SDTZeroCrossing_setOverlap (SDTZeroCrossing *x, double f)
 Sets the analysis window overlapping ratio. Accepted values go from 0.0 to 1.0, with 0.0 meaning no overlap and 1.0 meaning total overlap. More...
 
int SDTZeroCrossing_dsp (SDTZeroCrossing *x, double *out, double in)
 Signal processing routine. Call this function at sample rate to perform signal analysis. More...
 
SDTMyoelasticSDTMyoelastic_new (unsigned int size)
 Instantiates a myoelastic feature extractor. More...
 
void SDTMyoelastic_free (SDTMyoelastic *x)
 Destroys a myoelastic feature extractor. 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...
 
void SDTMyoelastic_dsp (SDTMyoelastic *x, double *outs, double in)
 Signal processing routine. Call this function at sample rate to perform signal analysis. More...
 
SDTSpectralFeatsSDTSpectralFeats_new (unsigned int size)
 Instantiates a spectral features extractor. More...
 
void SDTSpectralFeats_free (SDTSpectralFeats *x)
 Destroys a spectral features extractor. More...
 
void SDTSpectralFeats_setOverlap (SDTSpectralFeats *x, double f)
 Sets the analysis window overlapping ratio. Accepted values go from 0.0 to 1.0, with 0.0 meaning no overlap and 1.0 meaning total overlap. More...
 
void SDTSpectralFeats_setMinFreq (SDTSpectralFeats *x, double f)
 Sets the lower frequency bound for spectral analysis. Spectral bins below this frequency are ignored in the audio descriptors computation. More...
 
void SDTSpectralFeats_setMaxFreq (SDTSpectralFeats *x, double f)
 Sets the upper frequency bound for spectral analysis. Spectral bins above this frequency are ignored in the audio descriptors computation. More...
 
int SDTSpectralFeats_dsp (SDTSpectralFeats *x, double *outs, double in)
 Signal processing routine. Call this function for each sample to perform signal analysis. More...
 
SDTPitchSDTPitch_new (unsigned int size)
 Instantiates a fundamental frequency estimator object. More...
 
void SDTPitch_free (SDTPitch *x)
 Destroys a fundamental frequency estimator instance. More...
 
void SDTPitch_setOverlap (SDTPitch *x, double f)
 Sets the analysis window overlapping ratio. Accepted values go from 0.0 to 1.0, with 0.0 meaning no overlap and 1.0 meaning total overlap. More...
 
void SDTPitch_setTolerance (SDTPitch *x, double f)
 Sets the peak detection tolerance. Always choosing the greatest NSDF peak as pitch estimation sometimes leads to wrong octave detection errors. To overcome this problem, some tolerance is introduced in the peak detection algorithm. The chosen NSDF peak is the one with lowest frequency among those with value close enough to the global maximum. A value of 0.0 always selects the global maximum, while a value of 1.0 always selects the last NSDF peak. More...
 
int SDTPitch_dsp (SDTPitch *x, double *outs, double in)
 Signal processing routine. Call this function for each sample to perform signal analysis. More...