diff --git a/MEMLNaut-PAF-NISPS.ino b/MEMLNaut-PAF-NISPS.ino index 8d99dec..2e33e28 100644 --- a/MEMLNaut-PAF-NISPS.ino +++ b/MEMLNaut-PAF-NISPS.ino @@ -145,12 +145,13 @@ void setup() { midi_interf->sendNoteOff(last_note_number, 0); is_playing_note = false; } - int noteVel = static_cast(powf(y * (1.f/127.f), 0.5f) * 127.f); + int noteVel = static_cast(powf(y, 0.5f) * 127.f); uint8_t midimsg[2] = {static_cast(x * 127.f), noteVel}; queue_try_add(&audio_app->qMIDINoteOn, &midimsg); midi_interf->sendNoteOn(midimsg[0], midimsg[1]); last_note_number = midimsg[0]; is_playing_note = true; // Set flag to indicate a note is playing + // Serial.printf("sending %d %d\n",midimsg[0], midimsg[1]); } }); noteTrigView->SetOnTouchReleaseCallback([](float x, float y) { diff --git a/voicespaces/VoiceSpacePerc.hpp b/voicespaces/VoiceSpacePerc.hpp index 9602e64..ca41e90 100644 --- a/voicespaces/VoiceSpacePerc.hpp +++ b/voicespaces/VoiceSpacePerc.hpp @@ -42,7 +42,7 @@ \ dlfb = params[19] * 0.95f; \ \ - env.setup(params[30] * 1.f,params[20] * params[20] * 100.f,0.01 + (params[31] * 0.1f), params[32] * params[32] * 300.f, sampleRatef ); \ + env.setup(0.2f + (params[30] * 1.f),0.5f + params[20] * params[20] * 100.f,0.01 + (params[31] * 0.1f),1.f+ params[32] * params[32] * 300.f, sampleRatef ); \ \ sineShapeGain = params[26]; \ sineShapeASym = params[27]* 0.5f; \