NO-OP: remove trailing whitespace
[ardour.git] / libs / vamp-pyin / MonoPitchHMM.h
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*-  vi:set ts=8 sts=4 sw=4: */
2
3 /*
4     pYIN - A fundamental frequency estimator for monophonic audio
5     Centre for Digital Music, Queen Mary, University of London.
6
7     This program is free software; you can redistribute it and/or
8     modify it under the terms of the GNU General Public License as
9     published by the Free Software Foundation; either version 2 of the
10     License, or (at your option) any later version.  See the file
11     COPYING included with this distribution for more information.
12 */
13
14 #ifndef _MONOPITCHHMM_H_
15 #define _MONOPITCHHMM_H_
16
17 #include "SparseHMM.h"
18
19 #include <boost/math/distributions.hpp>
20
21 #include <vector>
22 #include <cstdio>
23
24 using std::vector;
25
26 class MonoPitchHMM : public SparseHMM
27 {
28 public:
29     MonoPitchHMM();
30     const std::vector<double> calculateObsProb(const vector<pair<double, double> >);
31     // double getMidiPitch(size_t index);
32     // double getFrequency(size_t index);
33     void build();
34     double m_minFreq; // 82.40689f/2
35     size_t m_nBPS;
36     size_t m_nPitch;
37     size_t m_transitionWidth;
38     double m_selfTrans;
39     double m_yinTrust;
40     vector<double> m_freqs;
41 };
42
43 #endif