Skip to content

Commit

Permalink
Merge pull request tebjan#14 from Kavinski/patch-1
Browse files Browse the repository at this point in the history
Apparently ShortMessage wasn't being written.
  • Loading branch information
tebjan authored Apr 12, 2017
2 parents 0c0fe9b + 8567128 commit d85c10f
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ public void Write(Stream strm)
case MessageType.SystemRealtime:
Write((SysRealtimeMessage)e.MidiMessage);
break;

case MessageType.Short:
Write((ShortMessage)e.MidiMessage);
break;
}
}

Expand Down Expand Up @@ -137,6 +141,11 @@ private void WriteVariableLengthValue(int value)
count--;
}
}

private void Write(ShortMessage message)
{
trackData.AddRange(message.GetBytes());
}

private void Write(ChannelMessage message)
{
Expand Down

0 comments on commit d85c10f

Please sign in to comment.