annotate MonoNoteParameters.cpp @ 0:99bac62ee2da

added PYIN sources, should be compileable
author matthiasm
date Wed, 27 Nov 2013 11:59:49 +0000
parents
children 3dcef83df62a
rev   line source
matthiasm@0 1 #include "MonoNoteParameters.h"
matthiasm@0 2
matthiasm@0 3 MonoNoteParameters::MonoNoteParameters() :
matthiasm@0 4 minPitch(36),
matthiasm@0 5 nPPS(3),
matthiasm@0 6 nS(43),
matthiasm@0 7 nSPP(4), // states per pitch
matthiasm@0 8 n(0),
matthiasm@0 9 initPi(0),
matthiasm@0 10 pAttackSelftrans(0.99),
matthiasm@0 11 pStableSelftrans(0.99),
matthiasm@0 12 pStable2Silent(0.005),
matthiasm@0 13 pSilentSelftrans(0.99),
matthiasm@0 14 sigma2Note(1.5),
matthiasm@0 15 maxJump(13),
matthiasm@0 16 pInterSelftrans(0.99),
matthiasm@0 17 priorPitchedProb(.7),
matthiasm@0 18 priorWeight(0.5),
matthiasm@0 19 minSemitoneDistance(.5),
matthiasm@0 20 sigmaYinPitchAttack(4),
matthiasm@0 21 sigmaYinPitchStable(0.9),
matthiasm@0 22 sigmaYinPitchInter(4),
matthiasm@0 23 yinTrust(0.1)
matthiasm@0 24 {
matthiasm@0 25 // just in case someone put in a silly value for pRelease2Unvoiced
matthiasm@0 26 n = nPPS * nS * nSPP;
matthiasm@0 27 }
matthiasm@0 28
matthiasm@0 29 MonoNoteParameters::~MonoNoteParameters()
matthiasm@0 30 {
matthiasm@0 31 }