Example #1
0
	def __init__(self):
		Processor.__init__(self,passthru=True)

		# This uses Tim Thompson's oscutil library
		oscmon = OscMonitor("127.0.0.1",9876)
		oscmon.setcallback(osccallback,"")

		debug("OscProcessor.__init__")
Example #2
0
	def __del__(self):
		debug("OscProcessor.__del__")
Example #3
0
def osccallback(ev,d):
	debug("oscmsg="+str(ev.oscmsg))
	def __init__(self,passthru=True):
		debug("Processor.__init__ time=%f" % (time.time()) )
		self.passthru = passthru
Example #5
0
	def __init__(self):
		Processor.__init__(self,passthru=True)

		debug("TwoProcessor.__init__")
Example #6
0
def getprocessor(bname):
	debug("getprocessor in python begins")
	blower = bname.lower()
	bpath = "pyffle.processor."+blower
	if bname == "Default":
		bclassname = "Processor"
	else:
		bclassname = bname + "Processor"
	debug("getprocessor - bname="+bname+" bpath="+bpath)
	try:
		recompile(bpath)
	except:
		debug("getprocessor - unable to recompile: "+bpath+" exception: "+format_exc())
		return None

	try:
		__import__(bpath)
	except:
		debug("getprocessor - unable to import: "+bpath+" exception: "+format_exc())
		return None

	try:
		processormod = getattr(pyffle.processor,blower)
	except:
		debug("getprocessor - no attribute on processor named: "+blower+" exception: "+format_exc())
		return None

	try:
		processorclass = getattr(processormod,bclassname)
	except:
		debug("getprocessor - module "+bpath+" didn't contain a class "+bclassname+" exception: "+format_exc())
		return None
	try:
		bobj = processorclass()
	except:
		debug("getprocessor - unable to instantiate object for module: "+bpath+" class: "+bclassname+" exception: "+format_exc())
		return None
	return bobj
Example #7
0
	def __init__(self):
		debug("OneProcessor.__init__");
		Processor.__init__(self,passthru=True)