1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
4 pYIN - A fundamental frequency estimator for monophonic audio
5 Centre for Digital Music, Queen Mary, University of London.
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.
14 #ifndef _MONONOTEHMM_H_
15 #define _MONONOTEHMM_H_
17 #include "MonoNoteParameters.h"
18 #include "SparseHMM.h"
20 #include <boost/math/distributions.hpp>
27 class MonoNoteHMM : public SparseHMM
31 const std::vector<double> calculateObsProb(const vector<pair<double, double> >);
32 double getMidiPitch(size_t index);
33 double getFrequency(size_t index);
35 MonoNoteParameters par;
36 vector<boost::math::normal> pitchDistr;