Skip to content

Commit

Permalink
Merge pull request #1 from s1ncx/master
Browse files Browse the repository at this point in the history
bugfix 0.4.1 - issue with consecutive drum samples merging unintentionally
  • Loading branch information
kleeder authored Feb 12, 2019
2 parents 7f821fb + 67f982d commit 1cef1aa
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions it2fssV4.py → it2fss041.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python

"""
it2fss.py, version 0.4
it2fss.py, version 0.4.1
----------------------
Python 3 only.
Expand Down Expand Up @@ -29,6 +29,7 @@
Version history
---------------
* 0.4.1: Fixed a bug where consecutive drum notes would be combined into one
* 0.4: Added Tempo Change Support
* 0.3: Added Sample and Volume Support
* 0.2: Fixed a bug that occurred when translating a single IT note into
Expand Down Expand Up @@ -225,7 +226,7 @@ def convert(module, filename):
die(ex)

outfile.write('{}\n\n'.format(2500 // module.tempo * module.speed))
outfile.write('> generated by it2fss.py Ver 0.4\n\n')
outfile.write('> generated by it2fss.py Ver 0.4.1\n\n')

item = 255
length = 0
Expand All @@ -241,8 +242,9 @@ def convert(module, filename):
cur_item = pattern[0][row]
cur_vol = patternVol[0][row]
cur_cmdVal = patternCmdVal[0][row]
if cur_item is not None and cur_item != item or cur_item is not None and cur_vol != vol:
if cur_item is not None and (cur_item != item or cur_vol != vol or cur_item <= 17 or cur_item >= 113):
outfile.write(note_format(item, length, vol, cmdVal, module.speed))

length = 0
item = cur_item
vol = cur_vol
Expand Down

0 comments on commit 1cef1aa

Please sign in to comment.