22 #ifndef __ONSETDETECTIONFUNCTION_H
23 #define __ONSETDETECTIONFUNCTION_H
34 SpectralDifferenceHWR,
36 ComplexSpectralDifference,
37 ComplexSpectralDifferenceHWR,
39 HighFrequencySpectralDifference,
40 HighFrequencySpectralDifferenceHWR
77 void initialise(
int hopSize_,
int frameSize_,
int onsetDetectionFunctionType_,
int windowType);
97 double energyEnvelope();
100 double energyDifference();
103 double spectralDifference();
106 double spectralDifferenceHWR();
109 double phaseDeviation();
112 double complexSpectralDifference();
115 double complexSpectralDifferenceHWR();
118 double highFrequencyContent();
121 double highFrequencySpectralDifference();
124 double highFrequencySpectralDifferenceHWR();
128 void calculateRectangularWindow();
131 void calculateHanningWindow();
134 void calclulateHammingWindow();
137 void calculateBlackmanWindow();
140 void calculateTukeyWindow();
147 double princarg(
double phaseVal);
154 int onsetDetectionFunctionType;
157 fftw_complex *complexIn;
158 fftw_complex *complexOut;
165 double prevEnergySum;