Mercurial > hg > tony
diff src/Analyser.cpp @ 223:d323b5d41570
Use CHP plugin for local frequency-constrained analysis
author | Chris Cannam |
---|---|
date | Fri, 07 Mar 2014 16:01:04 +0000 |
parents | 43cc5f7cc554 |
children | 9bdff8d10a86 |
line wrap: on
line diff
--- a/src/Analyser.cpp Fri Mar 07 11:17:37 2014 +0000 +++ b/src/Analyser.cpp Fri Mar 07 16:01:04 2014 +0000 @@ -268,20 +268,22 @@ TransformFactory *tf = TransformFactory::getInstance(); - QString plugname = "pYIN"; + QString plugname1 = "pYIN"; + QString plugname2 = "CHP"; + QString base = "vamp:pyin:localcandidatepyin:"; QString out = "pitchtrackcandidates"; if (range.isConstrained()) { - base = "vamp:pyin:yinfc:"; - out = "f0"; + base = "vamp:chp:constrainedharmonicpeak:"; + out = "peak"; } Transforms transforms; - QString notFound = tr("Transform \"%1\" not found. Unable to perform interactive analysis.<br><br>Is the %2 Vamp plugin correctly installed?"); + QString notFound = tr("Transform \"%1\" not found. Unable to perform interactive analysis.<br><br>Are the %2 and %3 Vamp plugins correctly installed?"); if (!tf->haveTransform(base + out)) { - return notFound.arg(base + out).arg(plugname); + return notFound.arg(base + out).arg(plugname1).arg(plugname2); } Transform t = tf->getDefaultTransformFor @@ -292,6 +294,7 @@ if (range.isConstrained()) { t.setParameter("minfreq", range.min); t.setParameter("maxfreq", range.max); + t.setBlockSize(4096); } RealTime start = RealTime::frame2RealTime