Commits

Anonymous committed 464a1e6

started tweaking word clock

Comments (0)

Files changed (2)

Binary file modified.
 out_text = [] # list of screen text rows
 cursor = ScreenText()
 ypos = 0
+framerate = 25
 wordrate = 3
 rows = 12
-font_size = 28
-ROW_WIDTH = 23
+font_size = 14
+ROW_WIDTH = 45
 reverse = False
-bgcolor = (0, 0, 0)
+bgcolor = ( 0, 0, 0 )
 
 #TODO: word clock and fixed frame rate
 #TODO: deck loading in separate thread
 
 def setup():
     pycessing.size(640, 480)
-    pycessing.framerate = wordrate
+    pycessing.framerate = framerate
     
     cursor.setFontFromFile(font, font_size)
     
     pycessing.onKeyUp = handle_keyup
 	
 def draw():
-    setBackground(bgcolor)
+    
     
     # update tempo 
     # TODO: optimize exponential ops, only trigger on event
     wordrate = 60 * ((pycessing.getMouseY() / float(pycessing.getHeight())) ** 3)
-    pycessing.framerate = wordrate + 0.25
+    #pycessing.framerate = wordrate + 0.25
     print "wordrate " + str(wordrate +0.25)
     
+    # don't update if wordcount
+    
+    setBackground(bgcolor[0], bgcolor[1], bgcolor[2])
     # update x-fader
     xfader = pycessing.getMouseX() / float(pycessing.getWidth())
     print "xfader " + str(xfader)