Skip to content

Commit

Permalink
running status except. 0xF0 , 0FF => 0F0 - 0xFF.
Browse files Browse the repository at this point in the history
  • Loading branch information
yoya committed Mar 6, 2015
1 parent e238f01 commit e298bfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IO/MIDI.php
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ function _buildChunkTrack(&$writer, $track, $opts) {
if (empty($opts['runningstatus']) === true) {
$writer->putUI8($status);
} else {
if (($prev_status !== $status) || ($status == 0xFF) || ($status == 0xF0)) {
if (($prev_status !== $status) || (($status & 0xF0) == 0xF0)) {
$writer->putUI8($status);
$prev_status = $status;
}
Expand Down

0 comments on commit e298bfc

Please sign in to comment.