diff options
author | Martin Peach <mrpeach@users.sourceforge.net> | 2010-04-25 05:12:26 +0000 |
---|---|---|
committer | Martin Peach <mrpeach@users.sourceforge.net> | 2010-04-25 05:12:26 +0000 |
commit | 8fd618dd5797d3e4789a4ea2f17b3130fd810978 (patch) | |
tree | 2648e4449ae89573d8e5050c817560c88fc66006 | |
parent | 74c6b45cd9bec9e7217909ea9d11ce33b59e5f1b (diff) |
fixed bug where messages with same running status don't get written.
svn path=/trunk/externals/mrpeach/; revision=13467
-rw-r--r-- | midifile/midifile.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |