From fa5fc1eeaf7925024575f7154be1684534a62071 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Sun, 2 Sep 2018 16:57:22 +0100 Subject: version for rarn vid --- gui/src/ofApp.cpp | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) (limited to 'gui/src/ofApp.cpp') diff --git a/gui/src/ofApp.cpp b/gui/src/ofApp.cpp index 706ff14..89e92c8 100644 --- a/gui/src/ofApp.cpp +++ b/gui/src/ofApp.cpp @@ -260,9 +260,7 @@ void ofApp::newMidiMessage(ofxMidiMessage& msg) { if (msg.channel==1&&msg.control==1+offet){ //pot 1 - for (int i=0;i='1' && args.key <= '9'){ sets[0].decayFactor = 1.0f + ( - pow(4.0f,-((args.key-'1')+1.0f)) + pow(4.0f,-((args.key-'1')+1.7f)) * (sets[0].decayFactor<1.0f?-1:1) ); sets[1].decayFactor=sets[0].decayFactor; -- cgit v1.2.3