Mercurial > hg > pyin
diff MonoPitch.h @ 0:99bac62ee2da
added PYIN sources, should be compileable
author | matthiasm |
---|---|
date | Wed, 27 Nov 2013 11:59:49 +0000 |
parents | |
children | 5945b8905d1f |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MonoPitch.h Wed Nov 27 11:59:49 2013 +0000 @@ -0,0 +1,24 @@ +#ifndef _MONOPITCH_H_ +#define _MONOPITCH_H_ + +#include "MonoPitchHMM.h" + +#include <iostream> +#include <vector> +#include <exception> + +using std::vector; +using std::pair; + +class MonoPitch { +public: + MonoPitch(); + virtual ~MonoPitch(); + + // pitchProb is a frame-wise vector carrying a vector of pitch-probability pairs + const vector<float> process(const vector<vector<pair<double, double> > > pitchProb); +private: + MonoPitchHMM hmm; +}; + +#endif \ No newline at end of file