Mercurial > hg > silvet
comparison src/EM.cpp @ 41:b49597c93132
Return an actual note transcription
author | Chris Cannam |
---|---|
date | Sat, 05 Apr 2014 17:57:50 +0100 |
parents | 5164bccf3064 |
children | c0c4a945577a |
comparison
equal
deleted
inserted
replaced
40:303c06efa8d2 | 41:b49597c93132 |
---|---|
32 EM::EM() : | 32 EM::EM() : |
33 m_notes(SILVET_TEMPLATE_NOTE_COUNT), | 33 m_notes(SILVET_TEMPLATE_NOTE_COUNT), |
34 m_bins(SILVET_TEMPLATE_HEIGHT), | 34 m_bins(SILVET_TEMPLATE_HEIGHT), |
35 m_instruments(SILVET_TEMPLATE_COUNT) | 35 m_instruments(SILVET_TEMPLATE_COUNT) |
36 { | 36 { |
37 cerr << "init!" << endl; | |
38 | |
39 m_lowest = 0; | 37 m_lowest = 0; |
40 m_highest = m_notes - 1; | 38 m_highest = m_notes - 1; |
41 | 39 |
42 for (int i = 0; i < m_instruments; ++i) { | 40 for (int i = 0; i < m_instruments; ++i) { |
43 if (i == 0 || silvet_templates[i].lowest < m_lowest) { | 41 if (i == 0 || silvet_templates[i].lowest < m_lowest) { |
63 } | 61 } |
64 } | 62 } |
65 | 63 |
66 m_estimate = V(m_bins); | 64 m_estimate = V(m_bins); |
67 m_q = V(m_bins); | 65 m_q = V(m_bins); |
68 | |
69 cerr << "(init done)" << endl; | |
70 } | 66 } |
71 | 67 |
72 EM::~EM() | 68 EM::~EM() |
73 { | 69 { |
74 } | 70 } |