Chroma.h
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
2 
3 /*
4  Tipic
5 
6  Centre for Digital Music, Queen Mary, University of London.
7 
8  This program is free software; you can redistribute it and/or
9  modify it under the terms of the GNU General Public License as
10  published by the Free Software Foundation; either version 2 of the
11  License, or (at your option) any later version. See the file
12  COPYING included with this distribution for more information.
13 */
14 
15 #ifndef CHROMA_H
16 #define CHROMA_H
17 
18 #include "Types.h"
19 
29 class Chroma
30 {
31 public:
32  struct Parameters {
33  bool applyLogCompression;
34  double logFactor;
35  double logAddTerm;
36  int normP; // 0 = no normalisation, 1 = L^1, 2 = L^2
37  double normThresh;
38  Parameters() :
39  applyLogCompression(false),
40  logFactor(100.0),
41  logAddTerm(1.0),
42  normP(2),
43  normThresh(1e-6)
44  { }
45  };
46 
47  Chroma(Parameters params);
48  ~Chroma();
49 
50  RealBlock process(const RealBlock &in);
51 
52 private:
53  Parameters m_params;
54 };
55 
56 #endif
57 
Definition: Chroma.h:29
Definition: Chroma.h:32