Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
# TODO? attempt IT 1.xx instruments?
raise Exception("old IT instruments not supported")
self.inslist.append(ITInstrument(fp))
self.smplist = []
for ptr in smpptrlist:
fp.seek(ptr)
self.smplist.append(ITSample(fp))
self.patlist = []
for ptr in patptrlist:
if ptr == 0:
self.patlist.append(None)
else:
fp.seek(ptr)
self.patlist.append(ITPattern(fp))
fp.close()
self.chn_has_sound = [False for i in xrange(64)]
self.usageset = set()
self.finalinslist = []
self.finalsmplist = []
self.finalpatlist = []
self.finalsmpdatalist = []
self.insmap = {}
self.smpmap = {}
self.patmap = {}