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