diff options
| author | Tim Redfern <redfernt@gmail.com> | 2023-04-16 17:46:17 +0100 |
|---|---|---|
| committer | Tim Redfern <redfernt@gmail.com> | 2023-04-16 17:46:17 +0100 |
| commit | 64da9187c2b2996c5c9493e23df86528eae77ee4 (patch) | |
| tree | 7482939535be2b8651504a881527a3e1c3698918 /audioin/src/ofApp.cpp | |
| parent | 1b6d98926d669fcb421c0be88c696b7f143050d8 (diff) | |
adding PONK to gui
Diffstat (limited to 'audioin/src/ofApp.cpp')
| -rw-r--r-- | audioin/src/ofApp.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/audioin/src/ofApp.cpp b/audioin/src/ofApp.cpp index a6fa8d1..682e5ea 100644 --- a/audioin/src/ofApp.cpp +++ b/audioin/src/ofApp.cpp @@ -52,15 +52,14 @@ void ofApp::draw(){ float scale=ofGetHeight()*vScale; - colourPolyline line; - + ofPolyline line; line.addVertex(0,vpos+(buffer[0]*scale)); - + float i=0.0f; while (i<(ofGetWidth()+hScale)){ i+=max(1.0f,hScale); - line.curveTo(i,vpos+(buffer[(int)i]*scale)); + line.lineTo(i,vpos+(buffer[(int)i]*scale)); } line.draw(); |
