summaryrefslogtreecommitdiff
path: root/decoders/midi
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2014-10-15 15:22:48 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2014-10-15 15:22:48 +0200
commitee7de90f6e61d15e4aeb40ccbe1a6d007b1fc9a1 (patch)
tree98ee41ed983e4ad2ade12f0ea1cb9a11f60b9a50 /decoders/midi
parent486b19ce017c6663be6574dacd0c823304903bca (diff)
downloadlibsigrokdecode-ee7de90f6e61d15e4aeb40ccbe1a6d007b1fc9a1.tar.gz
libsigrokdecode-ee7de90f6e61d15e4aeb40ccbe1a6d007b1fc9a1.zip
midi: Fix two incorrect sample numbers.
Diffstat (limited to 'decoders/midi')
-rw-r--r--decoders/midi/pd.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/decoders/midi/pd.py b/decoders/midi/pd.py
index 68a8369..296cee4 100644
--- a/decoders/midi/pd.py
+++ b/decoders/midi/pd.py
@@ -70,7 +70,7 @@ class Decoder(srd.Decoder):
c = self.cmd
if len(c) < 3:
return
- self.es_block = self.ss
+ self.es_block = self.es
msg, chan, note, velocity = c[0] & 0xf0, (c[0] & 0x0f) + 1, c[1], c[2]
s = 'note off' if (velocity == 0) else status_bytes[msg]
self.putx([0, ['Channel %d: %s (note = %d, velocity = %d)' % \
@@ -162,7 +162,7 @@ class Decoder(srd.Decoder):
def handle_sysrealtime_msg(self, newbyte):
# System realtime message: 0b11111ttt (t = message type)
- self.es_block = self.ss
+ self.es_block = self.es
self.putx([0, ['System realtime message: %s' % status_bytes[newbyte]]])
self.cmd, self.state = [], 'IDLE'