Sound Design Toolkit 075 Physically informed sound synthesis for everyday sounds

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

SDTAnalysis.h
Go to the documentation of this file.
1
8 #ifndef SDT_ANALYSIS_H
9 #define SDT_ANALYSIS_H
10
16 typedef struct SDTZeroCrossing SDTZeroCrossing;
17
21 extern SDTZeroCrossing *SDTZeroCrossing_new(unsigned int size);
22
25 extern void SDTZeroCrossing_free(SDTZeroCrossing *x);
26
32 extern void SDTZeroCrossing_setOverlap(SDTZeroCrossing *x, double f);
33
40 extern int SDTZeroCrossing_dsp(SDTZeroCrossing *x, double *out, double in);
41
50 typedef struct SDTMyoelastic SDTMyoelastic;
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
75 extern void SDTMyoelastic_setThreshold(SDTMyoelastic *x, double f);
76
82 extern void SDTMyoelastic_dsp(SDTMyoelastic *x, double *outs, double in);
83
93 typedef struct SDTSpectralFeats SDTSpectralFeats;
94
98 extern SDTSpectralFeats *SDTSpectralFeats_new(unsigned int size);
99
102 extern void SDTSpectralFeats_free(SDTSpectralFeats *x);
103
109 extern void SDTSpectralFeats_setOverlap(SDTSpectralFeats *x, double f);
110
115 extern void SDTSpectralFeats_setMinFreq(SDTSpectralFeats *x, double f);
116
121 extern void SDTSpectralFeats_setMaxFreq(SDTSpectralFeats *x, double f);
122
137 extern int SDTSpectralFeats_dsp(SDTSpectralFeats *x, double *outs, double in);
138
150 typedef struct SDTPitch SDTPitch;
151
155 extern SDTPitch *SDTPitch_new(unsigned int size);
156
159 extern void SDTPitch_free(SDTPitch *x);
160
166 extern void SDTPitch_setOverlap(SDTPitch *x, double f);
167
179 extern void SDTPitch_setTolerance(SDTPitch *x, double f);
180
190 extern int SDTPitch_dsp(SDTPitch *x, double *outs, double in);
191
194 #endif
195
SDTMyoelastic_setThreshold
void SDTMyoelastic_setThreshold(SDTMyoelastic *x, double f)
Sets the amplitude threshold of the input gate. Myoelastic activity is not computed for signals whose...
SDTSpectralFeats_setOverlap
void SDTSpectralFeats_setOverlap(SDTSpectralFeats *x, double f)
Sets the analysis window overlapping ratio. Accepted values go from 0.0 to 1.0, with 0...
SDTSpectralFeats_dsp
int SDTSpectralFeats_dsp(SDTSpectralFeats *x, double *outs, double in)
Signal processing routine. Call this function for each sample to perform signal analysis.
SDTMyoelastic_free
void SDTMyoelastic_free(SDTMyoelastic *x)
Destroys a myoelastic feature extractor.
SDTMyoelastic_setHighFrequency
void SDTMyoelastic_setHighFrequency(SDTMyoelastic *x, double f)
Sets the high frequency cutoff.
SDTPitch_setTolerance
void SDTPitch_setTolerance(SDTPitch *x, double f)
Sets the peak detection tolerance. Always choosing the greatest NSDF peak as pitch estimation sometim...
SDTZeroCrossing
struct SDTZeroCrossing SDTZeroCrossing
Opaque data structure for a zero crossing rate detector object.
Definition: SDTAnalysis.h:16
SDTSpectralFeats_new
SDTSpectralFeats * SDTSpectralFeats_new(unsigned int size)
Instantiates a spectral features extractor.
SDTPitch_setOverlap
void SDTPitch_setOverlap(SDTPitch *x, double f)
Sets the analysis window overlapping ratio. Accepted values go from 0.0 to 1.0, with 0...
SDTZeroCrossing_setOverlap
void SDTZeroCrossing_setOverlap(SDTZeroCrossing *x, double f)
Sets the analysis window overlapping ratio. Accepted values go from 0.0 to 1.0, with 0...
SDTSpectralFeats
struct SDTSpectralFeats SDTSpectralFeats
Opaque data structure for a spectral features extractor.
Definition: SDTAnalysis.h:93
SDTSpectralFeats_setMinFreq
void SDTSpectralFeats_setMinFreq(SDTSpectralFeats *x, double f)
Sets the lower frequency bound for spectral analysis. Spectral bins below this frequency are ignored ...
SDTMyoelastic_dsp
void SDTMyoelastic_dsp(SDTMyoelastic *x, double *outs, double in)
Signal processing routine. Call this function at sample rate to perform signal analysis.
SDTPitch_free
void SDTPitch_free(SDTPitch *x)
Destroys a fundamental frequency estimator instance.
SDTMyoelastic_setLowFrequency
void SDTMyoelastic_setLowFrequency(SDTMyoelastic *x, double f)
Sets the low frequency cutoff.
SDTMyoelastic_new
SDTMyoelastic * SDTMyoelastic_new(unsigned int size)
Instantiates a myoelastic feature extractor.
SDTSpectralFeats_setMaxFreq
void SDTSpectralFeats_setMaxFreq(SDTSpectralFeats *x, double f)
Sets the upper frequency bound for spectral analysis. Spectral bins above this frequency are ignored ...
SDTPitch_dsp
int SDTPitch_dsp(SDTPitch *x, double *outs, double in)
Signal processing routine. Call this function for each sample to perform signal analysis.
SDTMyoelastic
struct SDTMyoelastic SDTMyoelastic
Opaque data structure for a myoelastic feature extractor object.
Definition: SDTAnalysis.h:50
SDTSpectralFeats_free
void SDTSpectralFeats_free(SDTSpectralFeats *x)
Destroys a spectral features extractor.
SDTZeroCrossing_new
SDTZeroCrossing * SDTZeroCrossing_new(unsigned int size)
Instantiates a zero crossing rate detector.
SDTZeroCrossing_dsp
int SDTZeroCrossing_dsp(SDTZeroCrossing *x, double *out, double in)
Signal processing routine. Call this function at sample rate to perform signal analysis.
SDTPitch_new
SDTPitch * SDTPitch_new(unsigned int size)
Instantiates a fundamental frequency estimator object.
SDTZeroCrossing_free
void SDTZeroCrossing_free(SDTZeroCrossing *x)
Destroys a zero crossing rate detector.
SDTPitch
struct SDTPitch SDTPitch
Opaque data structure for a fundamental frequency estimator.
Definition: SDTAnalysis.h:150