Mercurial > hg > cepstral-pitchtracker
comparison NoteHypothesis.cpp @ 60:c06fe5350b34
But don't use a mid-stream low-confidence observation to reject a good ongoing hypothesis
author | Chris Cannam |
---|---|
date | Tue, 20 Nov 2012 21:57:49 +0000 |
parents | 82552664d471 |
children | 7ad142c710c6 |
comparison
equal
deleted
inserted
replaced
59:82552664d471 | 60:c06fe5350b34 |
---|---|
96 | 96 |
97 if (s.confidence < negligibleConfidence) { | 97 if (s.confidence < negligibleConfidence) { |
98 // avoid piling up a lengthy sequence of estimates that are | 98 // avoid piling up a lengthy sequence of estimates that are |
99 // all acceptable but are in total not enough to cause us to | 99 // all acceptable but are in total not enough to cause us to |
100 // be satisfied | 100 // be satisfied |
101 m_state = Rejected; | 101 if (m_pending.empty()) { |
102 m_state = Rejected; | |
103 } | |
102 return false; | 104 return false; |
103 } | 105 } |
104 | 106 |
105 switch (m_state) { | 107 switch (m_state) { |
106 | 108 |