diff options
| author | Tim Redfern <tim@getdrop.com> | 2018-05-31 18:18:28 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@getdrop.com> | 2018-05-31 18:18:28 +0100 |
| commit | 23879cc5bf88de215f10de14f1a3de9b6b2f586a (patch) | |
| tree | 2d665c3c06e45b9696cd82ff5abcf18d71d6b47f /gistanalysis/src/ofApp.cpp | |
| parent | bc654332edf65b0425c170db16db6c8dd1f80e8c (diff) | |
fixed rounding bug
Diffstat (limited to 'gistanalysis/src/ofApp.cpp')
| -rw-r--r-- | gistanalysis/src/ofApp.cpp | 40 |
1 files changed, 7 insertions, 33 deletions
diff --git a/gistanalysis/src/ofApp.cpp b/gistanalysis/src/ofApp.cpp index 43c6f29..5b75d26 100644 --- a/gistanalysis/src/ofApp.cpp +++ b/gistanalysis/src/ofApp.cpp @@ -73,7 +73,6 @@ void ofApp::setup(){ chaosgui.add(plotter.chaos_p.set("p", 7.7f, 0.0f, 10.0f)); lasergui.setup("laser","",230,200); - lasergui.add(drawWarpFrame.set("show warp", false)); lasergui.add(intensity.set("intensity", 30, 0, 255)); lasergui.add(subdivide.set("subdivide", 15, 1, 100)); lasergui.add(blank_num.set("blank points", 8, 0, 32)); @@ -364,16 +363,15 @@ void ofApp::drawOutput(ofEventArgs & args){ pnum+=shape.size(); } - if (drawWarpFrame){ - lineTransformer::drawWarpFrame(warpframe); - } + // if (drawWarpFrame){ + // lineTransformer::drawWarpFrame(warpframe); + // } //LASER laser.set_subdivide(subdivide); laser.set_blanknum(blank_num); laser.set_maxangle(max_angle); - laser.set_intensity(intensity); //int num=laser.draw(lines,30); @@ -498,35 +496,11 @@ void ofApp::outputKeyPressed(ofKeyEventArgs &args){ } //-------------------------------------------------------------- void ofApp::keyPressed(int key){ - if(key =='f'){ - ofToggleFullscreen(); - } - - if(key =='m'){ - useMic = !useMic; - - if(!useMic){ - player.play(); - }else{ - player.stop(); + switch(key){ + case '`':{ + bShowPositionInterface=!bShowPositionInterface; + break; } - - - gist.clearHistory(); - } - - if(key ==' '){ - isPaused = !isPaused; - player.setPaused(isPaused); - } - - if(key =='r'){ - gist.clearHistory(); - } - - - if(key =='c'){ - showMFCC = !showMFCC; } } //-------------------------------------------------------------- |
