projects
/
vamp-aubio-plugins.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
8311697
)
* compensate for (4 + m_median) * m_stepSize latency in note detection
author
Chris Cannam
<cannam@all-day-breakfast.com>
Wed, 17 May 2006 13:38:26 +0000
(13:38 +0000)
committer
Chris Cannam
<cannam@all-day-breakfast.com>
Wed, 17 May 2006 13:38:26 +0000
(13:38 +0000)
plugins/Notes.cpp
patch
|
blob
|
history
diff --git
a/plugins/Notes.cpp
b/plugins/Notes.cpp
index
35f4be9
..
05f7189
100644
(file)
--- a/
plugins/Notes.cpp
+++ b/
plugins/Notes.cpp
@@
-132,7
+132,7
@@
Notes::getPreferredStepSize() const
size_t
Notes::getPreferredBlockSize() const
{
- return 4
*
getPreferredStepSize();
+ return 4
*
getPreferredStepSize();
}
Notes::ParameterList
@@
-324,7
+324,9
@@
Notes::pushNote(FeatureSet &fs, const Vamp::RealTime &offTime)
Feature feature;
feature.hasTimestamp = true;
- feature.timestamp = m_currentOnset;
+ feature.timestamp = m_currentOnset -
+ Vamp::RealTime::frame2RealTime((4 + m_median) * m_stepSize,
+ m_inputSampleRate);
feature.values.push_back(median);
// feature.values.push_back(FLOOR(aubio_freqtomidi(median) + 0.5));
feature.values.push_back