Mercurial > hg > vamp-tempogram
comparison TempogramPlugin.cpp @ 26:ff6110f1144b
* Added an additional buffer in AutocorrelationProcessor::process() - possibly a little bit slower, but much easier to debug!
| author | Carl Bussey <c.bussey@se10.qmul.ac.uk> |
|---|---|
| date | Wed, 20 Aug 2014 16:32:52 +0100 |
| parents | fe23998968b4 |
| children | 723af5b3303a |
comparison
equal
deleted
inserted
replaced
| 25:fe23998968b4 | 26:ff6110f1144b |
|---|---|
| 472 //compute spectrogram from novelty curve data (i.e., tempogram) | 472 //compute spectrogram from novelty curve data (i.e., tempogram) |
| 473 Tempogram tempogramDFT = spectrogramProcessor.process(&noveltyCurve[0], numberOfBlocks, hannWindow); | 473 Tempogram tempogramDFT = spectrogramProcessor.process(&noveltyCurve[0], numberOfBlocks, hannWindow); |
| 474 delete []hannWindow; | 474 delete []hannWindow; |
| 475 hannWindow = 0; | 475 hannWindow = 0; |
| 476 | 476 |
| 477 int tempogramLag = 1; | 477 AutocorrelationProcessor autocorrelationProcessor(m_tempogramWindowLength, m_tempogramHopSize); |
| 478 AutocorrelationProcessor autocorrelationProcessor(m_tempogramWindowLength, m_tempogramHopSize, tempogramLag); | |
| 479 Tempogram tempogramACT = autocorrelationProcessor.process(&noveltyCurve[0], numberOfBlocks); | 478 Tempogram tempogramACT = autocorrelationProcessor.process(&noveltyCurve[0], numberOfBlocks); |
| 480 | 479 |
| 481 int tempogramLength = tempogramDFT.size(); | 480 int tempogramLength = tempogramDFT.size(); |
| 482 | 481 |
| 483 //push tempogram data to featureset 0 and set timestamps. | 482 //push tempogram data to featureset 0 and set timestamps. |
