From c8cd7f9298de876f2046fddd2e322a63c421a505 Mon Sep 17 00:00:00 2001 From: gramanas Date: Fri, 7 Jul 2023 01:09:12 +0300 Subject: suppa --- src/midi.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/midi.c') diff --git a/src/midi.c b/src/midi.c index 8452bcc..b53f365 100644 --- a/src/midi.c +++ b/src/midi.c @@ -16,6 +16,7 @@ void midi_decode(uint32_t msg, synth_t * synth) { case 0x08: // printf("Note Off: channel=%d, note=%d, velocity=%d\n", channel, data1, data2); synth->midi_note[data1].noteOff = Pa_GetStreamTime(synth->stream); + synth->midi_note[data1].noteOffSample = synth->midi_note[data1].elapsed; break; case 0x09: // printf("Note On: channel=%d, note=%d, velocity=%d\n", channel, data1, data2); -- cgit v1.2.3