diff options
| author | Tim Redfern <tim@getdrop.com> | 2018-05-31 19:23:49 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@getdrop.com> | 2018-05-31 19:23:49 +0100 |
| commit | b036871dd531cb3adc8ff744d2e4804efbccc0e6 (patch) | |
| tree | 69ff7ae57369940b409c59d838b5ee371cbf1b2f /gui/src/AudioPlotter.cpp | |
| parent | 31a9010253e555091992515c09760ff4118a224b (diff) | |
xform working in audioplot
Diffstat (limited to 'gui/src/AudioPlotter.cpp')
| -rw-r--r-- | gui/src/AudioPlotter.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gui/src/AudioPlotter.cpp b/gui/src/AudioPlotter.cpp index dba6765..e78e8ba 100644 --- a/gui/src/AudioPlotter.cpp +++ b/gui/src/AudioPlotter.cpp @@ -12,15 +12,17 @@ colourPolyline Audioplotter::compute_chaos(colourPolyline& poly,float colourFade } return tempPoly; } -vector <colourPolyline> Audioplotter::output(float scale,float decay){ +vector <colourPolyline> Audioplotter::output(float plotscale,float plotdecay){ ofMatrix4x4 x = ofMatrix4x4::newIdentityMatrix(); x.translate((-ofGetWidth()/2)+((ofVec2f)translate).x,(-ofGetHeight()/2)+((ofVec2f)translate).y,0); x.rotate(rotate,0,0,1); - //x.scale(((ofVec2f)scale).x,((ofVec2f)scale).y,1.0f); + + x.scale(((ofVec2f)scale).x,((ofVec2f)scale).y,1.0f); + x.translate((ofGetWidth()/2),(ofGetHeight()/2),0); //destructive or non? - float fadefactor=decay<0.0f?1.0f-(1.0f/history_size):decay; + float fadefactor=plotdecay<0.0f?1.0f-(1.0f/history_size):plotdecay; vector <colourPolyline> outdata; |
