summaryrefslogtreecommitdiff
path: root/audioin
diff options
context:
space:
mode:
Diffstat (limited to 'audioin')
-rw-r--r--audioin/src/ofApp.cpp7
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();