diff options
| author | Tim Redfern <tim@getdrop.com> | 2018-10-30 23:11:40 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@getdrop.com> | 2018-10-30 23:11:40 +0000 |
| commit | 9fe89712b7106cc8dab9af95ba53e0265202485c (patch) | |
| tree | 6891b9b765b588c4a96c62350c8e06008170b6fb | |
| parent | 77b184994e5f8804f796489273b9ef99a2cd3d15 (diff) | |
new speed setting
| -rw-r--r-- | gui/src/ofApp.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
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); } |
