How to use the munch.ITPattern function in munch

To help you get started, we’ve selected a few munch examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github iamgreaser / it2everything / munch.py View on Github external
# 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 = {}