From 9fe89712b7106cc8dab9af95ba53e0265202485c Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Tue, 30 Oct 2018 23:11:40 +0000 Subject: new speed setting --- gui/src/ofApp.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'gui') diff --git a/gui/src/ofApp.cpp b/gui/src/ofApp.cpp index 4dda518..5869074 100644 --- a/gui/src/ofApp.cpp +++ b/gui/src/ofApp.cpp @@ -339,10 +339,15 @@ void ofApp::guiKeyPressed(ofKeyEventArgs &args){ } if(args.key >='1' && args.key <= '9'){ + //sets[0].decayFactor = 1.0f + ( + // pow(4.0f,-((args.key-'1')+1.7f)) + // * (sets[0].decayFactor<1.0f?-1:1) + // ); sets[0].decayFactor = 1.0f + ( - pow(4.0f,-((args.key-'1')+1.7f)) + pow(4.0f,-(3+((args.key-'1')*0.1)+1.7f)) * (sets[0].decayFactor<1.0f?-1:1) ); + //temp fine adjust with keys sets[1].decayFactor=sets[0].decayFactor; printf("Keydiff: %f Decayfactor: %f \n",((args.key-'1')+1.0f),sets[0].decayFactor); } -- cgit v1.2.3