mirror of
https://github.com/freedoom/freedoom.git
synced 2025-09-04 04:25:46 -04:00
genmidi: Add script to make GENMIDI lump.
This commit is contained in:
parent
e10f006a71
commit
3fb0fdac05
2 changed files with 107 additions and 3 deletions
|
@ -73,12 +73,12 @@ def load_instrument(filename):
|
|||
|
||||
class Instrument:
|
||||
def __init__(self, file1, file2=None, off1=0, off2=0, note=None):
|
||||
self.instr1 = load_instrument(file1)
|
||||
self.voice1 = load_instrument(file1)
|
||||
|
||||
if file2 is not None:
|
||||
self.instr2 = load_instrument(file2)
|
||||
self.voice2 = load_instrument(file2)
|
||||
else:
|
||||
self.instr2 = None
|
||||
self.voice2 = None
|
||||
|
||||
self.fixed_note = note
|
||||
self.offset1 = off1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue