summaryrefslogtreecommitdiffstats
path: root/src/midi.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/midi.c')
-rw-r--r--src/midi.c1
1 files changed, 1 insertions, 0 deletions
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);