ref: f55630c5e9397c94d3f0e683c6eeb2c89fd6d490
parent: 22e3ef12f8264a2553fddb035992827207cd09f9
author: Paul Brossier <piem@piem.org>
date: Tue Mar 26 11:55:17 EDT 2019
[py] fix note-off timings (closes #240, thanks to @chaoxinzheng)
--- a/python/demos/demo_wav2midi.py
+++ b/python/demos/demo_wav2midi.py
@@ -63,7 +63,7 @@
delta = frames2tick(total_frames) - last_time
if new_note[2] > 0:
track.append(Message('note_off', note=int(new_note[2]),
- velocity=127, time=0)
+ velocity=127, time=delta)
)
track.append(Message('note_on',
note=int(new_note[0]),