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/src/AudioPlotter.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'gui/src/AudioPlotter.cpp') 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 "<