mirror of
https://github.com/freedoom/freedoom.git
synced 2025-09-02 16:25:47 -04:00
genmidi: Update to support Python 3 build.
Tweak the code used to build the GENMIDI Lump so that it properly supports Python 3 for build. Tested use cases were: * Normal build * a2i-to-sbi script to convert AdTrack2 instruments to SBI format * dumpgenmidi script to dump the instruments from a GENMIDI lump. * Running genmidi.py, sbi_file.py, a2i_file.py standalone to print the contents of files in their respective formats.
This commit is contained in:
parent
8422d38ce4
commit
e47b69a064
5 changed files with 37 additions and 39 deletions
|
@ -80,5 +80,5 @@ def def_for_note(note):
|
|||
NOTES = [ "C", "Cs", "D", "Ds", "E", "F", "Fs",
|
||||
"G", "Gs", "A", "As", "B" ]
|
||||
|
||||
return "%s.%s" % (OCTAVES[note / 12], NOTES[note % 12])
|
||||
return "%s.%s" % (OCTAVES[note // 12], NOTES[note % 12])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue