Sound Design Toolkit  075
Physically informed sound synthesis for everyday sounds
SDTAnalysis.h
1 
8 #ifndef SDT_ANALYSIS_H
9 #define SDT_ANALYSIS_H
10 
17 
21 extern SDTZeroCrossing *SDTZeroCrossing_new(unsigned int size);
22 
26 
32 extern void SDTZeroCrossing_setOverlap(SDTZeroCrossing *x, double f);
33 
40 extern int SDTZeroCrossing_dsp(SDTZeroCrossing *x, double *out, double in);
41 
51 
55 extern SDTMyoelastic *SDTMyoelastic_new(unsigned int size);
56 
59 extern void SDTMyoelastic_free(SDTMyoelastic *x);
60 
64 extern void SDTMyoelastic_setLowFrequency(SDTMyoelastic *x, double f);
65 
69 extern void SDTMyoelastic_setHighFrequency(SDTMyoelastic *x, double f);
70 
76 extern void SDTMyoelastic_dsp(SDTMyoelastic *x, double *outs, double in);
77 
88 
92 extern SDTSpectralFeats *SDTSpectralFeats_new(unsigned int size);
93 
97 
103 extern void SDTSpectralFeats_setOverlap(SDTSpectralFeats *x, double f);
104 
109 extern void SDTSpectralFeats_setMinFreq(SDTSpectralFeats *x, double f);
110 
115 extern void SDTSpectralFeats_setMaxFreq(SDTSpectralFeats *x, double f);
116 
131 extern int SDTSpectralFeats_dsp(SDTSpectralFeats *x, double *outs, double in);
132 
144 typedef struct SDTPitch SDTPitch;
145 
149 extern SDTPitch *SDTPitch_new(unsigned int size);
150 
153 extern void SDTPitch_free(SDTPitch *x);
154 
160 extern void SDTPitch_setOverlap(SDTPitch *x, double f);
161 
173 extern void SDTPitch_setTolerance(SDTPitch *x, double f);
174 
184 extern int SDTPitch_dsp(SDTPitch *x, double *outs, double in);
185 
188 #endif
189 
SDTSpectralFeats * SDTSpectralFeats_new(unsigned int size)
Instantiates a spectral features extractor.
void SDTSpectralFeats_setOverlap(SDTSpectralFeats *x, double f)
Sets the analysis window overlapping ratio. Accepted values go from 0.0 to 1.0, with 0...
int SDTSpectralFeats_dsp(SDTSpectralFeats *x, double *outs, double in)
Signal processing routine. Call this function for each sample to perform signal analysis.
void SDTMyoelastic_free(SDTMyoelastic *x)
Destroys a myoelastic feature extractor.
void SDTMyoelastic_setHighFrequency(SDTMyoelastic *x, double f)
Sets the high frequency cutoff.
void SDTPitch_setTolerance(SDTPitch *x, double f)
Sets the peak detection tolerance. Always choosing the greatest NSDF peak as pitch estimation sometim...
struct SDTZeroCrossing SDTZeroCrossing
Opaque data structure for a zero crossing rate detector object.
Definition: SDTAnalysis.h:16
SDTPitch * SDTPitch_new(unsigned int size)
Instantiates a fundamental frequency estimator object.
void SDTPitch_setOverlap(SDTPitch *x, double f)
Sets the analysis window overlapping ratio. Accepted values go from 0.0 to 1.0, with 0...
void SDTZeroCrossing_setOverlap(SDTZeroCrossing *x, double f)
Sets the analysis window overlapping ratio. Accepted values go from 0.0 to 1.0, with 0...
struct SDTSpectralFeats SDTSpectralFeats
Opaque data structure for a spectral features extractor.
Definition: SDTAnalysis.h:87
SDTZeroCrossing * SDTZeroCrossing_new(unsigned int size)
Instantiates a zero crossing rate detector.
void SDTSpectralFeats_setMinFreq(SDTSpectralFeats *x, double f)
Sets the lower frequency bound for spectral analysis. Spectral bins below this frequency are ignored ...
SDTMyoelastic * SDTMyoelastic_new(unsigned int size)
Instantiates a myoelastic feature extractor.
void SDTMyoelastic_dsp(SDTMyoelastic *x, double *outs, double in)
Signal processing routine. Call this function at sample rate to perform signal analysis.
void SDTPitch_free(SDTPitch *x)
Destroys a fundamental frequency estimator instance.
void SDTMyoelastic_setLowFrequency(SDTMyoelastic *x, double f)
Sets the low frequency cutoff.
void SDTSpectralFeats_setMaxFreq(SDTSpectralFeats *x, double f)
Sets the upper frequency bound for spectral analysis. Spectral bins above this frequency are ignored ...
int SDTPitch_dsp(SDTPitch *x, double *outs, double in)
Signal processing routine. Call this function for each sample to perform signal analysis.
struct SDTMyoelastic SDTMyoelastic
Opaque data structure for a myoelastic feature extractor object.
Definition: SDTAnalysis.h:50
void SDTSpectralFeats_free(SDTSpectralFeats *x)
Destroys a spectral features extractor.
int SDTZeroCrossing_dsp(SDTZeroCrossing *x, double *out, double in)
Signal processing routine. Call this function at sample rate to perform signal analysis.
void SDTZeroCrossing_free(SDTZeroCrossing *x)
Destroys a zero crossing rate detector.
struct SDTPitch SDTPitch
Opaque data structure for a fundamental frequency estimator.
Definition: SDTAnalysis.h:144