view MonoNoteParameters.cpp @ 1:3dcef83df62a

notes work again, now based on the hard PYIN estimate
author matthiasm
date Wed, 27 Nov 2013 15:31:47 +0000
parents 99bac62ee2da
children 5945b8905d1f
line wrap: on
line source
#include "MonoNoteParameters.h"

MonoNoteParameters::MonoNoteParameters() :
    minPitch(36), 
    nPPS(3), 
    nS(43), 
    nSPP(4), // states per pitch
    n(0),
    initPi(0), 
    pAttackSelftrans(0.5),
    pStableSelftrans(0.999),
    pStable2Silent(0.005),
    pSilentSelftrans(0.5), 
    sigma2Note(0.7),
    maxJump(13),
    pInterSelftrans(0.99),
    priorPitchedProb(.7),
    priorWeight(0.5),
    minSemitoneDistance(.5),
    sigmaYinPitchAttack(5), 
    sigmaYinPitchStable(0.9),
    sigmaYinPitchInter(5),
    yinTrust(0.1)
{
    // just in case someone put in a silly value for pRelease2Unvoiced
    n = nPPS * nS * nSPP;
}

MonoNoteParameters::~MonoNoteParameters()
{
}