OSDN Git Service

Fix --preserve-silence killing the first note.
authorAlexander Myltsev <myltsev@yandex-team.ru>
Mon, 4 Apr 2016 13:26:03 +0000 (16:26 +0300)
committerTAMUKI Shoichi <tamuki@linet.gr.jp>
Sun, 1 May 2016 23:21:28 +0000 (08:21 +0900)
Signed-off-by: Alexander Myltsev <myltsev@yandex-team.ru>
timidity/readmidi.c

index 158388a..7aab44a 100644 (file)
@@ -3755,8 +3755,8 @@ static int read_smf_track(struct timidity_file *tf, int trackno, int rewindp)
                     {
                        MIDIEVENT(0, ME_NOTEON, lastchan, a, 0);
                        MIDIEVENT(0, ME_NOTEOFF, lastchan, a, 0);
-                       note_seen = 1;
                     }
+                    note_seen = 1;
                    MIDIEVENT(smf_at_time, ME_NOTEON, lastchan, a,b);
                }
                else /* b == 0 means Note Off */