Mercurial > hg > pyin
comparison MonoNoteParameters.h @ 0:99bac62ee2da
added PYIN sources, should be compileable
author | matthiasm |
---|---|
date | Wed, 27 Nov 2013 11:59:49 +0000 |
parents | |
children | 5945b8905d1f |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:99bac62ee2da |
---|---|
1 #ifndef _MONONOTEPARAMETERS_H_ | |
2 #define _MONONOTEPARAMETERS_H_ | |
3 | |
4 #include <iostream> | |
5 #include <vector> | |
6 #include <exception> | |
7 | |
8 using std::vector; | |
9 | |
10 class MonoNoteParameters | |
11 { | |
12 public: | |
13 MonoNoteParameters(); | |
14 virtual ~MonoNoteParameters(); | |
15 | |
16 // model architecture parameters | |
17 size_t minPitch; // lowest pitch in MIDI notes | |
18 size_t nPPS; // number of pitches per semitone | |
19 size_t nS; // number of semitones | |
20 size_t nSPP; // number of states per pitch | |
21 size_t n; // number of states (will be calcualted from other parameters) | |
22 | |
23 // initial state probabilities | |
24 vector<double> initPi; | |
25 | |
26 // transition parameters | |
27 double pAttackSelftrans; | |
28 double pStableSelftrans; | |
29 double pStable2Silent; | |
30 double pSilentSelftrans; | |
31 double sigma2Note; // standard deviation of next note Gaussian distribution | |
32 double maxJump; | |
33 double pInterSelftrans; | |
34 | |
35 double priorPitchedProb; | |
36 double priorWeight; | |
37 | |
38 double minSemitoneDistance; // minimum distance for a transition | |
39 | |
40 double sigmaYinPitchAttack; | |
41 double sigmaYinPitchStable; | |
42 double sigmaYinPitchInter; | |
43 | |
44 double yinTrust; | |
45 | |
46 }; | |
47 | |
48 #endif |