From: Paul Brossier Date: Tue, 26 Mar 2019 14:55:17 +0000 (+0100) Subject: [py] fix note-off timings (closes #240, thanks to @chaoxinzheng) X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=f55630c5e9397c94d3f0e683c6eeb2c89fd6d490;p=aubio.git [py] fix note-off timings (closes #240, thanks to @chaoxinzheng) --- diff --git a/python/demos/demo_wav2midi.py b/python/demos/demo_wav2midi.py index 48c2d0a4..8caa3ae4 100755 --- a/python/demos/demo_wav2midi.py +++ b/python/demos/demo_wav2midi.py @@ -63,7 +63,7 @@ while True: 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]),