Skip to content

Commit 4369741

Browse files
committed
Reformat source code
1 parent bb8ac3a commit 4369741

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

mingus/midi/midi_track.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def play_Note(self, note):
7676
self.set_instrument(channel, self.instrument)
7777
self.change_instrument = False
7878

79-
assert 0 <= velocity <= 0x7f
79+
assert 0 <= velocity <= 0x7F
8080

8181
self.track_data += self.note_on(channel, int(note) + 12, velocity)
8282

@@ -181,8 +181,8 @@ def midi_event(self, event_type, channel, param1, param2=None):
181181
"""Convert and return the parameters as a MIDI event in bytes."""
182182
assert 0 <= event_type < 16
183183
assert 0 <= channel < 16
184-
assert 0 <= param1 <= 0x7f
185-
assert param2 is None or 0 <= param2 <= 0x7f
184+
assert 0 <= param1 <= 0x7F
185+
assert param2 is None or 0 <= param2 <= 0x7F
186186

187187
status_byte = channel | (event_type << 4)
188188
params = [param1]

unittest/test_fluidsynth.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class test_fluidsynth(unittest.TestCase):
2121
Check the :py:mod:`mingus.midi.fluidsynth` module for tips on finding
2222
SoundFonts.
2323
"""
24+
2425
def setUp(self):
2526
soundfont = os.getenv("SOUNDFONT")
2627
if soundfont is None:

0 commit comments

Comments
 (0)