annotate MonoNoteParameters.cpp @ 164:a7d9c6142f8f tip

Added tag v1.2 for changeset 4a97f7638ffd
author Chris Cannam
date Thu, 06 Feb 2020 15:02:47 +0000
parents 7ef7f6e90966
children
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@101 17 minPitch(35),
matthiasm@0 18 nPPS(3),
matthiasm@102 19 nS(69),
matthiasm@102 20 nSPP(3), // states per pitch
matthiasm@0 21 n(0),
matthiasm@0 22 initPi(0),
matthiasm@101 23 pAttackSelftrans(0.9),
matthiasm@101 24 pStableSelftrans(0.99),
matthiasm@101 25 pStable2Silent(0.01),
matthiasm@102 26 pSilentSelftrans(0.9999),
matthiasm@1 27 sigma2Note(0.7),
matthiasm@0 28 maxJump(13),
matthiasm@102 29 pInterSelftrans(0.0),
matthiasm@0 30 priorPitchedProb(.7),
matthiasm@0 31 priorWeight(0.5),
matthiasm@0 32 minSemitoneDistance(.5),
matthiasm@1 33 sigmaYinPitchAttack(5),
matthiasm@74 34 sigmaYinPitchStable(0.8),
matthiasm@74 35 sigmaYinPitchInter(.1),
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 }