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: #include "MonoNoteParameters.h" matthiasm@0: matthiasm@0: MonoNoteParameters::MonoNoteParameters() : matthiasm@101: minPitch(35), matthiasm@0: nPPS(3), matthiasm@102: nS(69), matthiasm@102: nSPP(3), // states per pitch matthiasm@0: n(0), matthiasm@0: initPi(0), matthiasm@101: pAttackSelftrans(0.9), matthiasm@101: pStableSelftrans(0.99), matthiasm@101: pStable2Silent(0.01), matthiasm@102: pSilentSelftrans(0.9999), matthiasm@1: sigma2Note(0.7), matthiasm@0: maxJump(13), matthiasm@102: pInterSelftrans(0.0), matthiasm@0: priorPitchedProb(.7), matthiasm@0: priorWeight(0.5), matthiasm@0: minSemitoneDistance(.5), matthiasm@1: sigmaYinPitchAttack(5), matthiasm@74: sigmaYinPitchStable(0.8), matthiasm@74: sigmaYinPitchInter(.1), matthiasm@0: yinTrust(0.1) matthiasm@0: { matthiasm@0: // just in case someone put in a silly value for pRelease2Unvoiced matthiasm@0: n = nPPS * nS * nSPP; matthiasm@0: } matthiasm@0: matthiasm@0: MonoNoteParameters::~MonoNoteParameters() matthiasm@0: { Chris@9: }