diff options
Diffstat (limited to 'src/midi.c')
-rw-r--r-- | src/midi.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |