From 6361fc600aefdec174c88213a9e84e76f2982019 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Tue, 19 Sep 2017 10:56:50 +0100 Subject: several fies --- gui/src/ofApp.cpp | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'gui/src/ofApp.cpp') diff --git a/gui/src/ofApp.cpp b/gui/src/ofApp.cpp index 3cc4878..9f29388 100644 --- a/gui/src/ofApp.cpp +++ b/gui/src/ofApp.cpp @@ -74,6 +74,8 @@ void ofApp::draw(){ void ofApp::drawOutput(ofEventArgs & args){ ofBackground(0,0,0); + + for (int i=0;i='1' && args.key <= '9'){ + sets[0].decayFactor = 1.0f + ( + pow(4.0f,-((args.key-'1')+1.0f)) + * (sets[0].decayFactor<1.0f?-1:1) + ); + sets[1].decayFactor=sets[0].decayFactor; + printf("Keydiff: %f Decayfactor: %f \n",((args.key-'1')+1.0f),sets[0].decayFactor); + } + } void ofApp::outputKeyPressed(ofKeyEventArgs &args){ -- cgit v1.2.3