annotate MonoNoteParameters.cpp @ 58:b39d6745c596
tony
changes to frequency range, dis-favouring low amplitude soudns
author |
matthiasm |
date |
Thu, 06 Mar 2014 16:47:52 +0000 |
parents |
5945b8905d1f |
children |
16129c3b1cf5 |
rev |
line source |
Chris@9
|
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
|
Chris@9
|
2
|
Chris@9
|
3 /*
|
Chris@9
|
4 pYIN - A fundamental frequency estimator for monophonic audio
|
Chris@9
|
5 Centre for Digital Music, Queen Mary, University of London.
|
Chris@9
|
6
|
Chris@9
|
7 This program is free software; you can redistribute it and/or
|
Chris@9
|
8 modify it under the terms of the GNU General Public License as
|
Chris@9
|
9 published by the Free Software Foundation; either version 2 of the
|
Chris@9
|
10 License, or (at your option) any later version. See the file
|
Chris@9
|
11 COPYING included with this distribution for more information.
|
Chris@9
|
12 */
|
Chris@9
|
13
|
matthiasm@0
|
14 #include "MonoNoteParameters.h"
|
matthiasm@0
|
15
|
matthiasm@0
|
16 MonoNoteParameters::MonoNoteParameters() :
|
matthiasm@58
|
17 minPitch(39),
|
matthiasm@0
|
18 nPPS(3),
|
matthiasm@58
|
19 nS(64),
|
matthiasm@0
|
20 nSPP(4), // states per pitch
|
matthiasm@0
|
21 n(0),
|
matthiasm@0
|
22 initPi(0),
|
matthiasm@1
|
23 pAttackSelftrans(0.5),
|
matthiasm@1
|
24 pStableSelftrans(0.999),
|
matthiasm@0
|
25 pStable2Silent(0.005),
|
matthiasm@1
|
26 pSilentSelftrans(0.5),
|
matthiasm@1
|
27 sigma2Note(0.7),
|
matthiasm@0
|
28 maxJump(13),
|
matthiasm@0
|
29 pInterSelftrans(0.99),
|
matthiasm@0
|
30 priorPitchedProb(.7),
|
matthiasm@0
|
31 priorWeight(0.5),
|
matthiasm@0
|
32 minSemitoneDistance(.5),
|
matthiasm@1
|
33 sigmaYinPitchAttack(5),
|
matthiasm@0
|
34 sigmaYinPitchStable(0.9),
|
matthiasm@1
|
35 sigmaYinPitchInter(5),
|
matthiasm@0
|
36 yinTrust(0.1)
|
matthiasm@0
|
37 {
|
matthiasm@0
|
38 // just in case someone put in a silly value for pRelease2Unvoiced
|
matthiasm@0
|
39 n = nPPS * nS * nSPP;
|
matthiasm@0
|
40 }
|
matthiasm@0
|
41
|
matthiasm@0
|
42 MonoNoteParameters::~MonoNoteParameters()
|
matthiasm@0
|
43 {
|
Chris@9
|
44 }
|