Mercurial > hg > cepstral-pitchtracker
diff NoteHypothesis.h @ 66:7ad142c710c6 parameters
Add some parameters
author | Chris Cannam |
---|---|
date | Fri, 30 Aug 2013 15:35:49 +0100 |
parents | 9f50a5876dd3 |
children |
line wrap: on
line diff
--- a/NoteHypothesis.h Thu Dec 06 17:27:16 2012 +0000 +++ b/NoteHypothesis.h Fri Aug 30 15:35:49 2013 +0100 @@ -57,10 +57,15 @@ }; /** - * Construct an empty hypothesis. This will be in New state and - * will provisionally accept any estimate. + * Construct an empty hypothesis. The given slack (in + * milliseconds) determines how long the hypothesis is prepared to + * tolerate unacceptable estimates in between accepted estimates + * before it becomes rejected. A reasonable default is 40ms. + * + * This hypothesis will be in New state and will provisionally + * accept any estimate. */ - NoteHypothesis(); + NoteHypothesis(float slack); /** * Destroy the hypothesis @@ -134,6 +139,7 @@ State m_state; Estimates m_pending; + float m_slack; }; #endif