diff --git a/tests/src/test_rapidPiPoTools.cpp b/tests/src/test_rapidPiPoTools.cpp index fd5e06bad2433a6824be38acb36f56b9ebe02e89..38886f89d3186939c036f86cb0ec7ad2ceffb13a 100644 --- a/tests/src/test_rapidPiPoTools.cpp +++ b/tests/src/test_rapidPiPoTools.cpp @@ -15,11 +15,9 @@ #include "catch.hpp" #include "signalProcessing.h" -#define MAX_PATH_SIZE 256 +//#define MAX_PATH_SIZE 256 -//static - -//================================== GMM =====================================// +//=============================== ONSEG TEST =================================// SCENARIO("Test rapidPiPoHost", "[signalProcessing]") { @@ -41,7 +39,7 @@ SCENARIO("Test rapidPiPoHost", "[signalProcessing]") //====================================================================// // instantiate PiPo related classes here : - rapidPiPoHost host; // -> this class is located in rapidPiPoTools + rapidmix::pipoHost host; // -> this class is located in rapidPiPoTools // if we want to add some custom PiPos to our collection : // #include "myCustomPiPo.h" @@ -49,7 +47,7 @@ SCENARIO("Test rapidPiPoHost", "[signalProcessing]") // now we can write : // pipoHost.setChain("myCustomPiPo"); -//#include "PiPoMaximChroma.h" +// #include "PiPoMaximChroma.h" // this one is not part of the default collection : // PiPoCollection::addToCollection("chroma", new PiPoCreator<PiPoMaximChroma>); @@ -75,12 +73,26 @@ SCENARIO("Test rapidPiPoHost", "[signalProcessing]") host.setAttr("onseg.threshold", 9.); host.setAttr("onseg.offthresh", -120.); + std::cout << "onseg threshold : "; + std::cout << host.getDoubleAttr("onseg.threshold") << std::endl; + std::cout << "fft mode : "; + std::cout << host.getEnumAttr("fft.mode") << std::endl; + std::cout << "param names : " << std::endl; + + std::vector<std::string> attrs = host.getAttrNames(); + + for (int i = 0; i < attrs.size(); ++i) + { + std::cout << "- " << attrs[i] << std::endl; + } + + std::cout << host.getJSON() << std::endl; // set another chain : // pipoHost.setChain("chroma"); WHEN("file is processed") { - rapidPiPoStreamAttributes sa; + rapidmix::pipoStreamAttributes sa; sa.hasTimeTags = true; sa.rate = 44100; sa.offset = 0;