fixed play view
This commit is contained in:
parent
a085f4874b
commit
01a55c28ab
2 changed files with 3 additions and 2 deletions
|
|
@ -145,12 +145,13 @@ void setup() {
|
|||
midi_interf->sendNoteOff(last_note_number, 0);
|
||||
is_playing_note = false;
|
||||
}
|
||||
int noteVel = static_cast<uint8_t>(powf(y * (1.f/127.f), 0.5f) * 127.f);
|
||||
int noteVel = static_cast<uint8_t>(powf(y, 0.5f) * 127.f);
|
||||
uint8_t midimsg[2] = {static_cast<uint8_t>(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) {
|
||||
|
|
|
|||
|
|
@ -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; \
|
||||
|
|
|
|||
Loading…
Reference in a new issue