From ee687726561e2520459c4cb4876700db2de5096f Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Thu, 12 Dec 2013 13:01:58 +0000 Subject: fix for audio viz fill --- rotord/src/nodes_audio_analysis.cpp | 11 +++++++---- rotord/src/nodes_drawing.h | 8 ++++---- rotord/src/vampHost.cpp | 10 +++++----- 3 files changed, 16 insertions(+), 13 deletions(-) (limited to 'rotord/src') diff --git a/rotord/src/nodes_audio_analysis.cpp b/rotord/src/nodes_audio_analysis.cpp index 96244d0..eff7a37 100644 --- a/rotord/src/nodes_audio_analysis.cpp +++ b/rotord/src/nodes_audio_analysis.cpp @@ -330,6 +330,7 @@ nned to retrieve total intensity by segment for (int j=1;jvalue<<" levels requested, "<<(int)totalsmap.size()<<" original segments"<value,(int)totalsmap.size())){ while (seggrps.size()value,(int)totalsmap.size())) { //split groups @@ -386,12 +389,12 @@ nned to retrieve total intensity by segment //add the new group seggrps.push_back(newgroup); } - + cerr<<"similaritity groups split, "< outputvalues; diff --git a/rotord/src/nodes_drawing.h b/rotord/src/nodes_drawing.h index ec70b96..5a8937f 100644 --- a/rotord/src/nodes_drawing.h +++ b/rotord/src/nodes_drawing.h @@ -258,11 +258,11 @@ namespace Rotor { //cairo_translate(cr, 0, frame.h/2); cairo_translate(cr,-frame.w/2,0); cairo_scale(cr,1.0,parameters["height"]->value); - //cairo_line_to(cr, 0, 0); + cairo_line_to(cr, 0, 0); for (int i=0;isamples[i*frame.audio->channels]+channel)*frame.h)>>16); } - //cairo_line_to(cr, frame.w/2, 0); + cairo_line_to(cr, frame.w/2, 0); cairo_close_path(cr); cairo_restore (cr); @@ -274,11 +274,11 @@ namespace Rotor { cairo_translate(cr,-frame.w/2,0); cairo_scale(cr,1.0,parameters["height"]->value); cairo_set_line_width (cr, parameters["width"]->value); - cairo_line_to(cr, 0, 0); + //cairo_line_to(cr, 0, 0); for (int i=0;isamples[i*frame.audio->channels+channel])*frame.h)>>16); } - cairo_line_to(cr, frame.w, 0); + //cairo_line_to(cr, frame.w, 0); cairo_restore (cr); cairo_stroke(cr); } diff --git a/rotord/src/vampHost.cpp b/rotord/src/vampHost.cpp index 3f18473..a70e795 100644 --- a/rotord/src/vampHost.cpp +++ b/rotord/src/vampHost.cpp @@ -383,11 +383,11 @@ void vampHost::Analyser::cleanup(){ featureNo++; } - //make a final feature at the end - //feature f; - //f.number=featureNo; - //f.values={0}; - //features[((double)rt.sec)+(((double)rt.nsec)*.000000001f)]=f; + //always make a final blank feature at the end + feature f; + f.number=featureNo; + f.values={}; + features[((double)rt.sec)+(((double)rt.nsec)*.000000001f)]=f; //cerr<getIdentifier()<<" found "<<(features.size()-1)<<" features"<