annotate dsp/chromagram/ChromaProcess.h @ 34:ad645e404d0c
* Add range of normalise options to chromagram
* bit of tidying
author |
cannam |
date |
Tue, 22 Jan 2008 17:27:07 +0000 |
parents |
d7116e3183f8 |
children |
|
rev |
line source |
cannam@0
|
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
|
cannam@0
|
2
|
cannam@0
|
3 /*
|
cannam@0
|
4 QM DSP Library
|
cannam@0
|
5
|
cannam@0
|
6 Centre for Digital Music, Queen Mary, University of London.
|
cannam@0
|
7 This file copyright 2005-2006 Christian Landone.
|
cannam@0
|
8 All rights reserved.
|
cannam@0
|
9 */
|
cannam@0
|
10
|
cannam@0
|
11 #ifndef CHROMAPROCESS_H
|
cannam@0
|
12 #define CHROMAPROCESS_H
|
cannam@0
|
13
|
cannam@0
|
14 #include <vector>
|
cannam@0
|
15
|
cannam@0
|
16 using namespace std;
|
cannam@0
|
17
|
cannam@0
|
18 class ChromaProcess
|
cannam@0
|
19 {
|
cannam@0
|
20 public:
|
cannam@0
|
21 void findHistMaxMin( vector<double> hist, double* max, int*maxIdx, double* min, int* minIdx );
|
cannam@0
|
22 vector <int> mod( vector <int> input, int res );
|
cannam@0
|
23 vector <int> getPeaks( vector <double> chroma, unsigned int BPO );
|
cannam@0
|
24 int findChromaBias( vector<double> chromaVector, unsigned int BPO, unsigned int frames );
|
cannam@0
|
25 ChromaProcess();
|
cannam@0
|
26 virtual ~ChromaProcess();
|
cannam@0
|
27
|
cannam@0
|
28 };
|
cannam@0
|
29
|
cannam@0
|
30 #endif // !defined(CHROMAPROCESS_H)
|