From 12c7449bd73a49ede4dacb90a9b0b7f73eb2e287 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Mon, 27 May 2013 12:40:16 +0100 Subject: quick fix --- rotord/rotor.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'rotord/rotor.cpp') diff --git a/rotord/rotor.cpp b/rotord/rotor.cpp index 5e4c6bb..83a3b8f 100755 --- a/rotord/rotor.cpp +++ b/rotord/rotor.cpp @@ -55,13 +55,18 @@ bool Signal_output::render(const float duration, const float framerate,string &x cerr << "Rotor: Signal_output rendering " << duration << " seconds at " << framerate << " frames per second" << endl; float step=1.0f/framerate; float v=0.0f; + float min=10000000.0f; + float max=-10000000.0f; for (float f=0.0f;f"+ofToString(u)+"\n"); v=u; + if (v>max) max=v; + if (v\n"); return true; } @@ -164,7 +169,7 @@ int Audio_analysis::process_frame(uint8_t *data,int samples_in_frame) { } void Audio_analysis::cleanup() { analyser.cleanup(); - print_features(); + //print_features(); } void Audio_analysis::print_features(){ for (auto i: analyser.features) { @@ -242,7 +247,7 @@ bool Video_loader::load(const string &filename){ } */ Poco::Path path; - string uri="file://"+path.current()+filename; + string uri="file://"+filename; isLoaded=player.open(uri); if (isLoaded){ cerr<<"Rotor::Video_loader: "<