From a730ef3ebd758b610b2fc5bad5d645040584f14f Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Sat, 2 Jun 2018 10:39:32 +0100 Subject: passades show --- gui/bin/data/settings.xml | 52 +++++++++++++++++++++++------------------------ gui/src/AudioPlotter.cpp | 12 +++++++++++ gui/src/AudioPlotter.h | 1 + gui/src/ofApp.cpp | 5 +++-- 4 files changed, 42 insertions(+), 28 deletions(-) (limited to 'gui') diff --git a/gui/bin/data/settings.xml b/gui/bin/data/settings.xml index 3332e37..7fe2fc2 100644 --- a/gui/bin/data/settings.xml +++ b/gui/bin/data/settings.xml @@ -1,32 +1,32 @@ - + - - 0.000000000 - 0.000000000 - - - 1200.000000000 - 0.000000000 - - - 1200.000000000 - 900.000000000 - - - 0.000000000 - 900.000000000 - + + 0.367187500 + 899.445312500 + + + 1199.296875000 + 897.746093750 + + + 1199.996093750 + 1.593750000 + + + -4.125000000 + 1.101562500 + - 0.000000000 - 0.000000000 + 43.828575134 + 817.771545410 -1.000000000 +2.177917004 - 0 - 30 - 30000 - 15 - 8 - 15 + 0 + 30 + 30000 + 15 + 8 + 15 diff --git a/gui/src/AudioPlotter.cpp b/gui/src/AudioPlotter.cpp index 22eb757..a4ea5f3 100644 --- a/gui/src/AudioPlotter.cpp +++ b/gui/src/AudioPlotter.cpp @@ -21,6 +21,12 @@ vector Audioplotter::output(float plotscale,float plotdecay){ x.scale(((ofVec2f)scale).x,((ofVec2f)scale).y,1.0f); x.translate((ofGetWidth()/2),(ofGetHeight()/2),0); + + + ofMatrix4x4 flip = ofMatrix4x4::newIdentityMatrix(); + flip.translate((-ofGetWidth()/2),(-ofGetHeight()/2),0); + flip.scale(-1.0f,1.0f,1.0f); + flip.translate((ofGetWidth()/2),(ofGetHeight()/2),0); //destructive or non? float fadefactor=plotdecay<0.0f?1.0f-(1.0f/history_size):plotdecay; @@ -41,8 +47,14 @@ vector Audioplotter::output(float plotscale,float plotdecay){ //ofLog() << "set colour to "< random; ofParameter joined; ofParameter bars; + ofParameter mirror; ofParameter width; ofParameter history_size; ofParameter num_points; diff --git a/gui/src/ofApp.cpp b/gui/src/ofApp.cpp index 367fdd2..7d14996 100644 --- a/gui/src/ofApp.cpp +++ b/gui/src/ofApp.cpp @@ -113,9 +113,10 @@ void ofApp::setup(){ audiogui.add(plotter.random.set("random",true)); audiogui.add(plotter.joined.set("joined",true)); audiogui.add(plotter.bars.set("bars",true)); + audiogui.add(plotter.mirror.set("mirror",false)); audiogui.add(plotter.width.set("point width", 2, 1, 256)); - audiogui.add(plotter.num_points.set("num points", 50, 1, 512)); - audiogui.add(plotter.history_size.set("num plots", 5, 1, 100)); + audiogui.add(plotter.num_points.set("num points", 50, 1, 64)); + audiogui.add(plotter.history_size.set("num plots", 5, 1, 64)); audiogui.add(plotter.translate.set("translate",ofVec2f(0,0),ofVec2f(-50,-50),ofVec2f(50,50))); audiogui.add(plotter.rotate.set("rotate",0.0f,-10.0f,10.0f)); audiogui.add(plotter.scale.set("scale",ofVec2f(1.0f,1.0f),ofVec2f(0.5f,0.5f),ofVec2f(2.0f,2.0f))); -- cgit v1.2.3