summaryrefslogtreecommitdiff
path: root/decoders/midi
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2014-07-15 22:49:43 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2014-07-15 22:49:43 +0200
commit35b380b1156434b73d4a976c68f5ab3604c8510a (patch)
tree75a60785c37d242eee5886af138dba5ef0f177c1 /decoders/midi
parent22fc7ace72f3165c98208a8f544156e04a709639 (diff)
downloadlibsigrokdecode-35b380b1156434b73d4a976c68f5ab3604c8510a.tar.gz
libsigrokdecode-35b380b1156434b73d4a976c68f5ab3604c8510a.zip
All PDs: Minor whitespace and consistency fixes.
- No newlines at the end of files. - No trailing ';' characters. - Comparison with None: Use 'is None' or 'is not None'. - Comparison with True/False: Use 'if cond:' or 'if not cond:'. - Various minor whitespace fixes.
Diffstat (limited to 'decoders/midi')
-rw-r--r--decoders/midi/__init__.py1
-rw-r--r--decoders/midi/lists.py3
-rw-r--r--decoders/midi/pd.py1
3 files changed, 1 insertions, 4 deletions
diff --git a/decoders/midi/__init__.py b/decoders/midi/__init__.py
index a453346..19be493 100644
--- a/decoders/midi/__init__.py
+++ b/decoders/midi/__init__.py
@@ -27,4 +27,3 @@ baud rate of 31250 baud (+/- 1%) and 8n1 settings. Bytes are sent LSB-first.
'''
from .pd import *
-
diff --git a/decoders/midi/lists.py b/decoders/midi/lists.py
index bc0f9b8..c72f5c9 100644
--- a/decoders/midi/lists.py
+++ b/decoders/midi/lists.py
@@ -267,7 +267,7 @@ sysex_manufacturer_ids = {
(0x00, 0x00, 0x5c): 'AT&T Bell Labs',
(0x00, 0x00, 0x5e): 'Symetrix',
(0x00, 0x00, 0x5f): 'MIDI the World',
-
+
(0x00, 0x00, 0x60): 'Desper Products',
(0x00, 0x00, 0x61): 'Micros\'N MIDI',
(0x00, 0x00, 0x62): 'Accordians Intl',
@@ -467,4 +467,3 @@ control_functions = {
0x7e: 'poly mode off', # mono mode on, all notes off
0x7f: 'poly mode on', # mono mode off, all notes off
}
-
diff --git a/decoders/midi/pd.py b/decoders/midi/pd.py
index 0717dbc..68a8369 100644
--- a/decoders/midi/pd.py
+++ b/decoders/midi/pd.py
@@ -206,4 +206,3 @@ class Decoder(srd.Decoder):
self.handle_syscommon_msg(pdata)
elif self.state == 'HANDLE SYSREALTIME MSG':
self.handle_sysrealtime_msg(pdata)
-