From 8fd618dd5797d3e4789a4ea2f17b3130fd810978 Mon Sep 17 00:00:00 2001 From: Martin Peach Date: Sun, 25 Apr 2010 05:12:26 +0000 Subject: fixed bug where messages with same running status don't get written. svn path=/trunk/externals/mrpeach/; revision=13467 --- midifile/midifile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'midifile') diff --git a/midifile/midifile.c b/midifile/midifile.c index e25afde..c36e80a 100644 --- a/midifile/midifile.c +++ b/midifile/midifile.c @@ -460,7 +460,7 @@ static void midifile_list(t_midifile *x, t_symbol *s, int argc, t_atom *argv) written = midifile_write_variable_length_value(x->tmpFP, x->track_chunk[0].delta_time); dt_written = 1; } - if (j == x->track_chunk[0].running_status) break;/* don't save redundant status byte */ + if (j == x->track_chunk[0].running_status) continue;/* don't save redundant status byte */ if (j >= 0x80 && j <= 0xEF)x->track_chunk[0].running_status = j;/* new running status */ else if (j >= 0xF0 && j <= 0xF7) { -- cgit v1.2.1