Mercurial > hg > batch-feature-extraction-tool
annotate Source/SpectralContrast.h @ 15:585caf503ef5 tip
Tidy up for ROLI
author | Geogaddi\David <d.m.ronan@qmul.ac.uk> |
---|---|
date | Tue, 17 May 2016 18:50:19 +0100 |
parents | 73852457b624 |
children |
rev | line source |
---|---|
d@10 | 1 /* |
d@10 | 2 ============================================================================== |
d@10 | 3 |
d@10 | 4 SpectralContrast.h |
d@10 | 5 Created: 14 Aug 2015 12:21:29pm |
d@10 | 6 Author: David |
d@10 | 7 |
d@10 | 8 ============================================================================== |
d@10 | 9 */ |
d@10 | 10 |
d@10 | 11 #ifndef SPECTRALCONTRAST_H_INCLUDED |
d@10 | 12 #define SPECTRALCONTRAST_H_INCLUDED |
d@10 | 13 |
d@10 | 14 #include <vector> |
d@10 | 15 |
d@10 | 16 class SpectralContrast |
d@10 | 17 { |
d@10 | 18 public: |
d@10 | 19 void initSpectralContrastVariables(int frameSize, float sampleRate); |
d@10 | 20 void computeSpectralContrast(std::vector<float> spectrum, std::vector<float> &spectralContrast, std::vector<float> &valleys); |
d@10 | 21 private: |
d@10 | 22 std::vector<int> m_numberOfBinsInBands; |
d@10 | 23 int m_startAtBin; |
d@10 | 24 float m_neighbourRatio; |
d@10 | 25 }; |
d@10 | 26 |
d@10 | 27 |
d@10 | 28 |
d@10 | 29 #endif // SPECTRALCONTRAST_H_INCLUDED |