Skip to content

Commit 977bf71

Browse files
committed
Fix parsing issue with non running status channel events
1 parent 2dc4f95 commit 977bf71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MidiEventDecoder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def midiEvent(self, midiData):
6060
return systemEvent
6161
# Channel Event
6262
if Util.msbIsOne(midiData): # running status
63-
self.lastChannelStatusByte = midiData[0]
63+
self.lastChannelStatusByte = midiData[0:1]
6464
else: # not running status
6565
midiData = self.lastChannelStatusByte + midiData
6666
channelEventIdentifier = midiData[0] & int('f0', 16)

0 commit comments

Comments
 (0)