From a6183ca848dee82c8e3a8e6104a1b9c8dcac684f Mon Sep 17 00:00:00 2001 From: ryoon Date: Tue, 8 Nov 2011 11:04:05 +0000 Subject: Update to 20111021 Changelog: October 21 2011 Abc2midi bug: %%MIDI control command after a rest causes loss of synchronization. In the following example X:1 T: Synchronization Loss after rest (z2) V:1 V:2 M: 4/4 K:F#dor V:1 |: A,G, | F,G,F,G, A,B,A,G, | F,4-F,2 :| V:2 %%MIDI program 65 |:\ %%MIDI control 7 40 de| f4 z2 %%MIDI control 7 80 GA| f4-f2\ :| The control command is used to modulate the loudness of the alto saxophone in voice 2. The second control command which attenuates the saxophone to velocity 80 introduces another delay of z2 causing the following notes G and A to be played one beat late (into the next bar). Analysis: The second control command introduces a beat delay because delta_time is not zero when the function write_event is called. (Delta_time is not zero after a rest so that the following note will be delayed.) Fix: write_event should not introduce any delay, so that delta_time was replaced by 0 in the function call mf_write_midi_event(..). The function write_event is also called to turn on (off) portamento, to handle pitch_bend, pedal on and pedal off MIDI commands. (Hopefully, this change does not introduce a bug in the other functions.) --- audio/abcmidi/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'audio/abcmidi/Makefile') diff --git a/audio/abcmidi/Makefile b/audio/abcmidi/Makefile index 452e7bb2a71..8b8e65b3056 100644 --- a/audio/abcmidi/Makefile +++ b/audio/abcmidi/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.10 2011/10/26 12:02:00 ryoon Exp $ +# $NetBSD: Makefile,v 1.11 2011/11/08 11:04:05 ryoon Exp $ # DISTNAME= abcMIDI-${ABCMIDIVER} @@ -13,7 +13,7 @@ HOMEPAGE= http://abc.sourceforge.net/abcMIDI/ COMMENT= Music utilities for abc LICENSE= gnu-gpl-v2 -ABCMIDIVER= 2011-10-19 +ABCMIDIVER= 2011-10-21 PKG_DESTDIR_SUPPORT= user-destdir -- cgit v1.2.3