diff options
| author | Tim Redfern <tim@eclectronics.org> | 2013-05-23 18:19:13 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2013-05-23 18:19:13 +0100 |
| commit | 63971c9b5e2dcfa1b7e254cac9cac5629c776835 (patch) | |
| tree | d8eca036763531fd9cb9191ebf3c241f2efb9868 /vamphost/src/testApp.cpp | |
| parent | 0f5301b988bad81b2f27ba4d88c6ee3d0205603a (diff) | |
rearrange folders: working vamp host
Diffstat (limited to 'vamphost/src/testApp.cpp')
| -rw-r--r-- | vamphost/src/testApp.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/vamphost/src/testApp.cpp b/vamphost/src/testApp.cpp index b431fce..659ed35 100644 --- a/vamphost/src/testApp.cpp +++ b/vamphost/src/testApp.cpp @@ -22,8 +22,12 @@ void testApp::setup() { int channels=1; int outputNo=0; - string soname="qm-vamp-plugins"; - string id="qm-tempotracker"; + //string soname="qm-vamp-plugins"; + //string id="qm-tempotracker"; + //string id="qm-barbeattracker"; + + string soname="vamp-example-plugins.so"; + string id="percussiononsets"; int bufferSize = vamphost.init(soname,id,channels,rate,outputNo); @@ -149,7 +153,7 @@ ofSetColor(225); ofSetColor(225); string reportString = "buffers received: "+ofToString(bufferCounter)+"\ndraw routines called: "+ofToString(drawCounter)+"\nticks: " + ofToString(soundStream.getTickCount()); - reportString +="\nfeatures found: "+ofToString(vamphost.features.size()); + reportString +="\nfeatures found: "+ofToString(vamphost.numFeat)+" average signal: "+ofToString(vamphost.avg)+" samples: "+ofToString(vamphost.num); ofDrawBitmapString(reportString, 32, 589); } @@ -183,6 +187,7 @@ void testApp::audioIn(float * input, int bufferSize, int nChannels){ bufferCounter++; + //input would seem to be in the range 0..1 vamphost.process_frame(input,bufferSize); |
