summaryrefslogtreecommitdiff
path: root/src/testApp.cpp
diff options
context:
space:
mode:
authorComment <tim@gray.(none)>2013-05-29 09:52:49 +0100
committerComment <tim@gray.(none)>2013-05-29 09:52:49 +0100
commit69e9ed62bbc899117550d7b9c888e71dd9ede0e2 (patch)
tree95ad9a1051e4700f8ba1014c07ebae5d2c2033cb /src/testApp.cpp
parent152679db6f61e79a2bd5434935ee36c49f936664 (diff)
nearly done
Diffstat (limited to 'src/testApp.cpp')
-rwxr-xr-xsrc/testApp.cpp18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/testApp.cpp b/src/testApp.cpp
index 967d2d1..e9b8403 100755
--- a/src/testApp.cpp
+++ b/src/testApp.cpp
@@ -88,7 +88,6 @@ void testApp::createports(int num){
//--------------------------------------------------------------
void testApp::setup(){
- windowsize=32;
previewscale=5;
showFPS=false;
@@ -113,6 +112,9 @@ void testApp::setup(){
brightSlider=0;
gui.add(bS.setup("brightness",brightSlider,0,255,255));
+ fadeSlider=0;
+ gui.add(fS.setup("fade",fadeSlider,0,255,255));
+
gui.add(create_1.setup("1"));
create_1.addListener(this,&testApp::create1port);
gui.add(create_2.setup("2"));
@@ -127,8 +129,11 @@ void testApp::setup(){
gui.add(sF.setup("freq",slidFreq,0,1.0,255));
gui.add(wave.setup("wave", false));
+ gui.add(fillwave.setup("wave fill", false));
slidThickness=1.0f;
gui.add(sT.setup("thickness",slidThickness,0,10.0,255));
+ slidWave=1.0f;
+ gui.add(sT.setup("amplitude",slidWave,0,4.0,255));
/*
gui.setup("","panel.xml",0,0);
@@ -167,7 +172,7 @@ void testApp::setup(){
soundStream.listDevices();
//if you want to set a different device id
- //soundStream.setDeviceID(0); //bear in mind the device id corresponds to all audio devices, including input-only and output-only devices.
+ //soundStream.setDeviceID(4); //bear in mind the device id corresponds to all audio devices, including input-only and output-only devices.
@@ -218,6 +223,9 @@ void testApp::update(){
control.freq=slidFreq;
control.wave=wave;
control.thickness=slidThickness;
+ control.fillwave=fillwave;
+ control.waveheight=slidWave;
+ control.fade=(uint8_t)fadeSlider;
}
//--------------------------------------------------------------
@@ -256,6 +264,12 @@ void testApp::keyPressed(int key){
if(key == OF_KEY_DOWN){
control.yshift++;
}
+ if(key == OF_KEY_LEFT){
+ control.xshift--;
+ }
+ if(key == OF_KEY_RIGHT){
+ control.xshift++;
+ }
}