Chris@9: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ Chris@9: Chris@9: /* Chris@9: pYIN - A fundamental frequency estimator for monophonic audio Chris@9: Centre for Digital Music, Queen Mary, University of London. Chris@9: Chris@9: This program is free software; you can redistribute it and/or Chris@9: modify it under the terms of the GNU General Public License as Chris@9: published by the Free Software Foundation; either version 2 of the Chris@9: License, or (at your option) any later version. See the file Chris@9: COPYING included with this distribution for more information. Chris@9: */ Chris@9: matthiasm@0: #ifndef _MONONOTEPARAMETERS_H_ matthiasm@0: #define _MONONOTEPARAMETERS_H_ matthiasm@0: matthiasm@0: #include matthiasm@0: #include matthiasm@0: #include matthiasm@0: matthiasm@0: using std::vector; matthiasm@0: matthiasm@0: class MonoNoteParameters matthiasm@0: { matthiasm@0: public: matthiasm@0: MonoNoteParameters(); matthiasm@0: virtual ~MonoNoteParameters(); matthiasm@0: matthiasm@0: // model architecture parameters matthiasm@0: size_t minPitch; // lowest pitch in MIDI notes matthiasm@0: size_t nPPS; // number of pitches per semitone matthiasm@0: size_t nS; // number of semitones matthiasm@0: size_t nSPP; // number of states per pitch matthiasm@0: size_t n; // number of states (will be calcualted from other parameters) matthiasm@0: matthiasm@0: // initial state probabilities matthiasm@0: vector initPi; matthiasm@0: matthiasm@0: // transition parameters matthiasm@0: double pAttackSelftrans; matthiasm@0: double pStableSelftrans; matthiasm@0: double pStable2Silent; matthiasm@0: double pSilentSelftrans; matthiasm@0: double sigma2Note; // standard deviation of next note Gaussian distribution matthiasm@0: double maxJump; matthiasm@0: double pInterSelftrans; matthiasm@0: matthiasm@0: double priorPitchedProb; matthiasm@0: double priorWeight; matthiasm@0: matthiasm@0: double minSemitoneDistance; // minimum distance for a transition matthiasm@0: matthiasm@0: double sigmaYinPitchAttack; matthiasm@0: double sigmaYinPitchStable; matthiasm@0: double sigmaYinPitchInter; matthiasm@0: matthiasm@0: double yinTrust; matthiasm@0: matthiasm@0: }; matthiasm@0: Chris@9: #endif