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