Skip to content

Commit 905ffdb

Browse files
committed
add a line of documentation
1 parent 0643f20 commit 905ffdb

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

midicontroller/main.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,9 @@ def check_eyeblink(self, sensitivity, lowfreq, highfreq):
224224
return False
225225

226226
def parse_midi_channel_list(self, text):
227+
"""
228+
parse "1,2 , 3, 4 ,5" into [1,2,3,4,5]
229+
"""
227230
try:
228231
ms_split = text.split(",")
229232
chans = [ int(i) for i in ms_split ]
@@ -232,6 +235,9 @@ def parse_midi_channel_list(self, text):
232235
return []
233236

234237
def parse_number_ranges(self, text):
238+
"""
239+
parse "4:8:2, a4:c#5:2" into [4,6,8,69,71,73]
240+
"""
235241
values = []
236242
try:
237243
ranges = text.split(",")

midicontroller/notelookup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,4 @@ def lookup(self, note):
4949
assert n.lookup("Bbb4") == 69
5050
assert n.lookup("bbb4") == 69
5151
assert n.lookup("6") == 6
52+
print n.lookup("c#5")

0 commit comments

Comments
 (0)