Mercurial > hg > qm-vamp-plugins
comparison plugins/BarBeatTrack.cpp @ 153:38502a1595ff
Update for new DetectionFunction api
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Mon, 21 Oct 2013 12:02:51 +0100 |
parents | 87c13eccd52e |
children | f96ea0e4b475 |
comparison
equal
deleted
inserted
replaced
152:979281679a39 | 153:38502a1595ff |
---|---|
346 #else | 346 #else |
347 double dfinput[fl]; | 347 double dfinput[fl]; |
348 #endif | 348 #endif |
349 for (int i = 0; i < fl; ++i) dfinput[i] = inputBuffers[0][i]; | 349 for (int i = 0; i < fl; ++i) dfinput[i] = inputBuffers[0][i]; |
350 | 350 |
351 double output = m_d->df->process(dfinput); | 351 double output = m_d->df->processTimeDomain(dfinput); |
352 | 352 |
353 if (m_d->dfOutput.empty()) m_d->origin = timestamp; | 353 if (m_d->dfOutput.empty()) m_d->origin = timestamp; |
354 | 354 |
355 // std::cerr << "df[" << m_d->dfOutput.size() << "] is " << output << std::endl; | 355 // std::cerr << "df[" << m_d->dfOutput.size() << "] is " << output << std::endl; |
356 m_d->dfOutput.push_back(output); | 356 m_d->dfOutput.push_back(output); |