Hello,
I’ve been exploring the pipo API with JUCE. I’ve followed the JUCE example with the onset detection and now I was trying to use the psy module, however, I get an error on the PiPoSequence, where frames return -1. Could you perhaps help me understand why I get this error?
Basically, in the MainComponent.cpp, in the void MainComponent::initPipoHost() I write:
// define pipo chain
this->jucePipo = this->host->setPiPoChain(“psy”);
And set the attributes as:
this->jucePipo->setAttr(“psy.minFreq”, 50);
this->jucePipo->setAttr(“psy.maxFreq”, 2000);
this->jucePipo->setAttr(“psy.downSampling”, “none”);
this->jucePipo->setAttr(“psy.yinThreshold”, 0.68);
this->jucePipo->setAttr(“psy.noiseThreshold”, 0.45);
Thank you for your help
Luis