Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions Commons.Music.Midi.Shared/SMF.cs
Original file line number Diff line number Diff line change
Expand Up @@ -393,14 +393,10 @@ public byte StatusByte {

public byte EventType {
get {
switch (StatusByte) {
case Meta:
case SysEx1:
case SysEx2:
return StatusByte;
default:
return (byte) (Value & 0xF0);
}
var statusByte = StatusByte;
if (statusByte >= 0xF0)
return statusByte;
return (byte)(statusByte & 0xF0);
}
}

Expand Down
Loading