Skip to content
Snippets Groups Projects
Unverified Commit 9f4898cb authored by mirabilos's avatar mirabilos Committed by mirabilos
Browse files

stylistic nits

parent 7d8fcb40
No related branches found
No related tags found
No related merge requests found
...@@ -225,6 +225,7 @@ def mml(macro, _nplay=None, _barline=None, _mmltrk=None): ...@@ -225,6 +225,7 @@ def mml(macro, _nplay=None, _barline=None, _mmltrk=None):
macro.pop(0) macro.pop(0)
ndots += 1 ndots += 1
normml[0] += "." normml[0] += "."
# play the note or append to a playlist
_nplay(res, bpm, art, note, length, ndots, extra) _nplay(res, bpm, art, note, length, ndots, extra)
while macro: while macro:
...@@ -275,8 +276,9 @@ def mml(macro, _nplay=None, _barline=None, _mmltrk=None): ...@@ -275,8 +276,9 @@ def mml(macro, _nplay=None, _barline=None, _mmltrk=None):
else: else:
_length = timevalue _length = timevalue
# sustain dots, and play the note # parse sustain dots, append note to playlist
_play(macro, normml, res, bpm, art, note, _length, extra) _play(macro, normml, res, bpm, art, note, _length, extra)
elif char == "L": elif char == "L":
timevalue = _getint(macro, 1, 64, 4) timevalue = _getint(macro, 1, 64, 4)
normml[0] += "L" + str(timevalue) normml[0] += "L" + str(timevalue)
...@@ -289,8 +291,9 @@ def mml(macro, _nplay=None, _barline=None, _mmltrk=None): ...@@ -289,8 +291,9 @@ def mml(macro, _nplay=None, _barline=None, _mmltrk=None):
normml[0] += "M" + char normml[0] += "M" + char
elif char == "N": elif char == "N":
note = _getint(macro, 0, 84, 0) - 1 note = _getint(macro, 0, 84, 0)
normml[0] += "N" + str(note + 1) normml[0] += "N" + str(note)
note -= 1
_play(macro, normml, res, bpm, art, note, timevalue, note) _play(macro, normml, res, bpm, art, note, timevalue, note)
elif char == "O": elif char == "O":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment