22 #ifndef __ONSETDETECTIONFUNCTION_H
23 #define __ONSETDETECTIONFUNCTION_H
34 SpectralDifferenceHWR,
36 ComplexSpectralDifference,
37 ComplexSpectralDifferenceHWR,
39 HighFrequencySpectralDifference,
40 HighFrequencySpectralDifferenceHWR
70 void initialise(
int hopSize_,
int frameSize_,
int onsetDetectionFunctionType_,
int windowType);
85 double energyEnvelope();
88 double energyDifference();
91 double spectralDifference();
94 double spectralDifferenceHWR();
97 double phaseDeviation();
100 double complexSpectralDifference();
103 double complexSpectralDifferenceHWR();
106 double highFrequencyContent();
109 double highFrequencySpectralDifference();
112 double highFrequencySpectralDifferenceHWR();
116 void calculateRectangularWindow();
119 void calculateHanningWindow();
122 void calclulateHammingWindow();
125 void calculateBlackmanWindow();
128 void calculateTukeyWindow();
132 double princarg(
double phaseVal);
139 int onsetDetectionFunctionType;
142 fftw_complex *complexIn;
143 fftw_complex *complexOut;
150 double prevEnergySum;