Mercurial > hg > btrack
comparison src/OnsetDetectionFunction.h @ 57:296af6af6c3d
Replaced switch statements in OnsetDetectionFunction with enums. Renamed lots of functions so that they have better names, in camel case. Added some unit tests for initialisation of BTrack.
author | Adam Stark <adamstark@users.noreply.github.com> |
---|---|
date | Thu, 23 Jan 2014 15:31:11 +0000 |
parents | 338f5eb29e41 |
children | a8e3e95d14e4 |
comparison
equal
deleted
inserted
replaced
56:b6d440942ff6 | 57:296af6af6c3d |
---|---|
21 | 21 |
22 #ifndef __RTONSETDF_H | 22 #ifndef __RTONSETDF_H |
23 #define __RTONSETDF_H | 23 #define __RTONSETDF_H |
24 | 24 |
25 #include "fftw3.h" | 25 #include "fftw3.h" |
26 | |
27 //======================================================================= | |
28 enum OnsetDetectionFunctionType | |
29 { | |
30 EnergyEnvelope, | |
31 EnergyDifference, | |
32 SpectralDifference, | |
33 SpectralDifferenceHWR, | |
34 PhaseDeviation, | |
35 ComplexSpectralDifference, | |
36 ComplexSpectralDifferenceHWR, | |
37 HighFrequencyContent, | |
38 HighFrequencySpectralDifference, | |
39 HighFrequencySpectralDifferenceHWR | |
40 }; | |
41 | |
42 //======================================================================= | |
43 enum WindowType | |
44 { | |
45 RectangularWindow, | |
46 HanningWindow, | |
47 HammingWindow, | |
48 BlackmanWindow, | |
49 TukeyWindow | |
50 }; | |
26 | 51 |
27 class OnsetDetectionFunction | 52 class OnsetDetectionFunction |
28 { | 53 { |
29 public: | 54 public: |
30 | 55 |