diff options
| author | Tim Redfern <tim@getdrop.com> | 2022-11-16 23:17:17 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@getdrop.com> | 2022-11-16 23:17:17 +0000 |
| commit | 1b07e926df573c2331171d621cf8506ad09640ec (patch) | |
| tree | 858bc83216c7491198a87193add02e6d1b872cd9 /audioin/src/ofApp.cpp | |
| parent | a393a5dd49636c54edf513d192d18c3e4768a034 (diff) | |
add laser to audio project
Diffstat (limited to 'audioin/src/ofApp.cpp')
| -rw-r--r-- | audioin/src/ofApp.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/audioin/src/ofApp.cpp b/audioin/src/ofApp.cpp index 9160f65..e6b0e6d 100644 --- a/audioin/src/ofApp.cpp +++ b/audioin/src/ofApp.cpp @@ -55,6 +55,7 @@ void ofApp::draw(){ line.draw(); + laser.draw(line); ofPopMatrix(); @@ -81,7 +82,7 @@ void ofApp::audioIn(float * input, int blockSize, int nChannels){ void ofApp::printOscParams(){ - ofLog()<<(1000.0f/(SAMPLERATE/(ofGetWidth()/hScale)))<<"ms, scale: "<<vScale<<", width "<<lineWidth; + ofLog()<<(1000.0f/(SAMPLERATE/(ofGetWidth()/hScale)))<<"ms, "<<((int)(ofGetWidth()/hScale))<<" points; scale "<<vScale<<", width "<<lineWidth; } //-------------------------------------------------------------- |
