Mercurial > hg > pyin
view MonoPitch.h @ 4:3cf34d0effed
Ensure that parameters are initialised with their default values; avoid crashing on empty input (both flagged by vamp-plugin-tester)
author | Chris Cannam |
---|---|
date | Thu, 28 Nov 2013 13:08:57 +0000 |
parents | 99bac62ee2da |
children | 5945b8905d1f |
line wrap: on
line source
#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