Mercurial > hg > pyin
view MonoNoteParameters.cpp @ 4:3cf34d0effed
Ensure that parameters are initialised with their default values; avoid crashing on empty input (both flagged by vamp-plugin-tester)
author | Chris Cannam |
---|---|
date | Thu, 28 Nov 2013 13:08:57 +0000 |
parents | 3dcef83df62a |
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() { }