annotate 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 |
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@1
|
10 pAttackSelftrans(0.5),
|
matthiasm@1
|
11 pStableSelftrans(0.999),
|
matthiasm@0
|
12 pStable2Silent(0.005),
|
matthiasm@1
|
13 pSilentSelftrans(0.5),
|
matthiasm@1
|
14 sigma2Note(0.7),
|
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@1
|
20 sigmaYinPitchAttack(5),
|
matthiasm@0
|
21 sigmaYinPitchStable(0.9),
|
matthiasm@1
|
22 sigmaYinPitchInter(5),
|
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 } |