diff options
| author | Tim Redfern <tim@getdrop.com> | 2018-05-22 23:24:49 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@getdrop.com> | 2018-05-22 23:24:49 +0100 |
| commit | 5d13e1e25db4bc1627873485d1164e641f6ef19f (patch) | |
| tree | 4270c26ef03c29ccd77ed397aabb553893029246 /gistanalysis/src/ofApp.cpp | |
| parent | cd298b5bf00661ce31ae1d4498de58d5291477f2 (diff) | |
big improvements
Diffstat (limited to 'gistanalysis/src/ofApp.cpp')
| -rw-r--r-- | gistanalysis/src/ofApp.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/gistanalysis/src/ofApp.cpp b/gistanalysis/src/ofApp.cpp index 76e53a9..ab5f374 100644 --- a/gistanalysis/src/ofApp.cpp +++ b/gistanalysis/src/ofApp.cpp @@ -2,6 +2,9 @@ using namespace std; +int MAX_POINTS=40000; +int LASER_INTENSITY=37; + //-------------------------------------------------------------- void ofApp::setup(){ ofSetCircleResolution(80); @@ -46,10 +49,10 @@ void ofApp::setup(){ gui.setup("panel"); // most of the time you don't need a name but don't forget to call setup - gui.add(numPlots.set("num plots", 1, 1, 128)); + gui.add(numPlots.set("num plots", 50, 1, 256)); gui.add(scalePlot.set( "scale plot", 0.1f, 0.0f, 1.0f )); gui.add(decayPlot.set( "decay", 0.9f, 0.0f, 1.0f )); - gui.add(xform.set("xform",ofVec2f(0,0),ofVec2f(-10,-10),ofVec2f(10,10))); + gui.add(xform.set("xform",ofVec2f(0,0),ofVec2f(-50,-50),ofVec2f(50,50))); /* @@ -79,7 +82,10 @@ void ofApp::setup(){ //loadSong("passades/1 The Ninth Set-sector1:sector2pt.1.aiff"); //loadSong("assets/sounds/Coltrane_acc_VUIMM.wav"); - plotter=Audioplotter(4,true); + plotter=Audioplotter(5,true); + + laser.set_pts(MAX_POINTS); + laser.set_intensity(LASER_INTENSITY); } @@ -276,7 +282,7 @@ void ofApp::drawOutput(ofEventArgs & args){ _xform.makeTranslationMatrix(xform->x,xform->y,0); auto lines=plotter.output(_xform,scalePlot,decayPlot); - laser.draw(lines,50); + laser.draw(lines,30); ofTranslate(0,ofGetHeight()/2); |
