Mercurial > code > home > repos > light9
annotate flax/littletimeline.py @ 168:f8b5cb5fbeed
- CueFader is hopefully done:
- CueFader is hopefully done:
- The TimedGoButton accepts a wheel to change the times. You can also
enter times directly.
- TimedGoButton really has a default starting time of 2 now. (there was
a variable attached to the wrong widget before)
- We send DMX levels with dmxclient now.
- Autoload Times is a new option.
- We load times from the next cue if Autoload Times is true.
- Time predictions in the LabelledScale are slightly better. You still
can change the time of an active fade.
- Cue cache and DMX level computing now have their own functions, which
get called at (hopefully) All The Right Times.
- There are even some docs now!
- Cues: sub_level parsing is better, will only throw out one line if
it encounters problems (instead of the rest of the cue)
- CueList: lots of 0 vs. None bugs fixed.
- TkCueList: stores a reference to the controlling fader so it can alert
it about changed cues.
- CueEditron: You can edit sub_levels now.
- cuelist1 was edited, checking it in for consistency's sake
author | dmcc |
---|---|
date | Wed, 09 Jul 2003 03:59:40 +0000 |
parents | 2f48cb9219ed |
children |
rev | line source |
---|---|
0 | 1 #!/usr/bin/python |
2 | |
121 | 3 """ a test that listens to ascoltami player and outputs a light to |
4 dmxserver """ | |
5 | |
6 from __future__ import division | |
7 import xmlrpclib,time,socket,sys | |
8 sys.path.append("../light8") | |
9 import dmxclient | |
0 | 10 |
11 player=xmlrpclib.Server("http://localhost:8040") | |
121 | 12 print "found player" |
0 | 13 |
14 t1=time.time() | |
15 while 1: | |
16 try: | |
17 playtime=player.gettime() | |
18 except socket.error,e: | |
19 print "server error %r, waiting"%e | |
20 time.sleep(2) | |
121 | 21 |
22 lev=0 | |
23 for low,high,func in ((0,20,0), | |
24 (20,30,(playtime-20)/10), | |
25 (30,170,1), | |
26 (170,189,1-(playtime-170)/19), | |
27 ): | |
28 if low<=playtime<high: | |
29 lev=func | |
30 | |
31 print "Send",lev | |
32 dmxclient.outputlevels([lev]) | |
33 | |
0 | 34 time.sleep(.01) |