2
« on: May 06, 2009, 03:27:20 »
I've noticed that the tempo results are off from what calculating a simple BPM number from the time difference of consecutive beats would give. For instance in the histograms below you can see that qm-tempotracker:tempo thought that 117 was the right target, but there were less than 2% of the qm-tempotracker:beats at a bpm of 117. If I manually tap the beats I get 115 bpm which is where the qm-tempotracker:beats suggests.
Histogram of results from qm-vamp-plugins:qm-tempotracker:tempo
115 6 3.6% ***
117 152 91.6% *******************************************************************************************
120 1 0.6%
123 1 0.6%
129 1 0.6%
133 1 0.6%
152 4 2.4% **
Histogram of tempo compute from qm-vamp-plugins:qm-tempotracker:beats
091 1 0.2%
108 1 0.2%
110 2 0.4%
112 48 10.0% **********
115 386 80.8% ********************************************************************************
117 8 1.7% *
120 4 0.8%
123 2 0.4%
126 4 0.8%
129 3 0.6%
133 1 0.2%
152 7 1.5% *
191 4 0.8%
199 1 0.2%
215 1 0.2%
235 5 1.0% *
The bars and numbers don't add up between the two histograms because the beats talks about actual beats, but the tempo histogram is reporting on the roughly 1.5 second chunks reported by qm-tempotracker:tempo. Which leads to another question... why am I seeing the chunks? The api docs for that say:
"The estimated tempo, returned as a feature each time the estimated tempo changes, with a single value for the tempo in beats per minute."
Yet I see the following output from vamp-simple-host:
0.011609977:117.455
1.497687074:152
2.983764172:152
4.469841269:152
5.955918367:152
7.441995464:117.455
8.928072562:117.455
10.414149659:117.455
11.900226757:117.455
13.386303854:117.455
14.872380952:117.455
16.358458049:117.455
17.844535147:117.455
19.330612244:117.455
And that 1.486 second difference between timestamps is consistent across any file I have looked at. I would have expected to see the times when it changed... why I am I getting periodic reports?
I have a wrapper around vamp-simple-host, and I am using version 2.0 of the SDK and version 1.5 of the QM plugins.
Any suggestions would be greatly appreciated. Thanks for a cool tool,
-ben