Mercurial > hg > pyin
annotate MonoPitch.h @ 0:99bac62ee2da
added PYIN sources, should be compileable
author | matthiasm |
---|---|
date | Wed, 27 Nov 2013 11:59:49 +0000 |
parents | |
children | 5945b8905d1f |
rev | line source |
---|---|
matthiasm@0 | 1 #ifndef _MONOPITCH_H_ |
matthiasm@0 | 2 #define _MONOPITCH_H_ |
matthiasm@0 | 3 |
matthiasm@0 | 4 #include "MonoPitchHMM.h" |
matthiasm@0 | 5 |
matthiasm@0 | 6 #include <iostream> |
matthiasm@0 | 7 #include <vector> |
matthiasm@0 | 8 #include <exception> |
matthiasm@0 | 9 |
matthiasm@0 | 10 using std::vector; |
matthiasm@0 | 11 using std::pair; |
matthiasm@0 | 12 |
matthiasm@0 | 13 class MonoPitch { |
matthiasm@0 | 14 public: |
matthiasm@0 | 15 MonoPitch(); |
matthiasm@0 | 16 virtual ~MonoPitch(); |
matthiasm@0 | 17 |
matthiasm@0 | 18 // pitchProb is a frame-wise vector carrying a vector of pitch-probability pairs |
matthiasm@0 | 19 const vector<float> process(const vector<vector<pair<double, double> > > pitchProb); |
matthiasm@0 | 20 private: |
matthiasm@0 | 21 MonoPitchHMM hmm; |
matthiasm@0 | 22 }; |
matthiasm@0 | 23 |
matthiasm@0 | 24 #endif |