Esempio n. 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__")
Esempio n. 2
0
	def __init__(self):
		debug("TextProcessor.__init__")
		debug("getpwd=%s" % os.getcwd())
		Processor.__init__(self,passthru=False)
		otherfont = "trebucbd.ttf"
		otherfont = "arialbd.ttf"
		self.fontname = otherfont
		self.fontheight = 80
		self.smallfontname = otherfont
		self.smallfontheight = 40
		self.mediumfontname = otherfont
		self.mediumfontheight = 60
		self.bigfontname = otherfont
		self.bigfontheight = 70
		self.palettefontname = "poorich.ttf"
		self.palettefontheight = 100
		self.text = ""
		self.pos = (0,300)
		self.lastchoice0 = 0
		self.lastchoice1 = 0
		self.lastchoice2 = 0
		self.showattract = True
		self.showhints = False
		self.showbighint = False
		self.font = glFreeType.font_data(self.fontname,self.fontheight)
		self.smallfont = glFreeType.font_data(self.smallfontname,self.smallfontheight)
		self.mediumfont = glFreeType.font_data(self.mediumfontname,self.mediumfontheight)
		self.bigfont = glFreeType.font_data(self.bigfontname,self.bigfontheight)
		self.palettefont = glFreeType.font_data(self.palettefontname,self.palettefontheight)
		if not self.font or not self.smallfont:
			debug("Unable to load font %s !!" % self.fontname)
		else:
			debug("Font %s successfully initialized"%self.fontname)

		try:
			oscmon = OscMonitor("127.0.0.1",9876)
			oscmon.setcallback(osccallback,self)
		except:
			debug("Unable to start OscMonitor: %s" % format_exc())
		self.Cosine = {}
		self.Sine = {}
		for angle in range(0,361,1):
			anglerad = pi * angle / 180.0
			self.Cosine[angle] = cos(anglerad)
			self.Sine[angle] = sin(anglerad)

		self.compute_holes()
Esempio n. 3
0
	def __init__(self):
		debug("TextProcessor.__init__")
		debug("getpwd=%s" % os.getcwd())
		Processor.__init__(self,passthru=True)
		self.fontname = "poorich.ttf"
		self.fontheight = 80
		self.text = ""
		self.pos = (0,300)
		self.font = glFreeType.font_data(self.fontname,self.fontheight)
		if not self.font:
			debug("Unable to load font %s !!" % self.fontname)
		else:
			debug("Font %s successfully initialized"%self.fontname)

		try:
			oscmon = OscMonitor("127.0.0.1",9876)
			oscmon.setcallback(osccallback,self)
		except:
			debug("Unable to start OscMonitor: %s" % format_exc())
Esempio n. 4
0
	def __init__(self):
		Processor.__init__(self,passthru=True)

		debug("TwoProcessor.__init__")
Esempio n. 5
0
	def __init__(self):
		debug("OneProcessor.__init__");
		Processor.__init__(self,passthru=True)