Mercurial > code > home > repos > light9
comparison light8/dmxclient.py @ 167:79bc84310e80
changes from tonight's rehearsal:
changes from tonight's rehearsal:
- CueFader is closer to actually running the show, computes DMX levels
to send.
- KeyboardComposer is not a dummy. Use DMXDUMMY=1 to disable it.
- Submaster: subs can now be "temporary" -- i.e. they shouldn't be saved
or loaded. to save a temporary sub, make a copy of it with a proper name
since the computed name will be ugly.
Also, get_normalized_copy() and crossfade() methods added.
linear_fade helper (shouldn't be in Submaster, probably) added too.
- dmxchanedit: longer labels
- cuelist1 now has some bogus data in it and some crap removed
- dmxclient: now listens to the $DMXHOST and $DMXDUMMY env variables.
- patchdata: now up to date with this year's show
- danshow subs song{01..19}: removed. maybe we'll re-add them in an
archive directory.
author | dmcc |
---|---|
date | Tue, 08 Jul 2003 16:19:55 +0000 |
parents | 2dfe2c0ba052 |
children | 238eede02bf9 |
comparison
equal
deleted
inserted
replaced
166:7ccf1d10804b | 167:79bc84310e80 |
---|---|
18 second.""" | 18 second.""" |
19 | 19 |
20 global _dmx,_id | 20 global _dmx,_id |
21 | 21 |
22 if _dmx is None: | 22 if _dmx is None: |
23 _dmx=xmlrpclib.Server("http://dash:8030") | 23 host = os.getenv('DMXHOST', 'localhost') |
24 _dmx=xmlrpclib.Server("http://%s:8030" % host) | |
24 | 25 |
25 try: | 26 try: |
26 _dmx.outputlevels(_id,levellist) | 27 _dmx.outputlevels(_id,levellist) |
27 except socket.error,e: | 28 except socket.error,e: |
28 print "dmx server error %s, waiting"%e | 29 print "dmx server error %s, waiting"%e |
29 time.sleep(1) | 30 time.sleep(1) |
30 except xmlrpclib.Fault,e: | 31 except xmlrpclib.Fault,e: |
31 print "outputlevels had xml fault: %s" % e | 32 print "outputlevels had xml fault: %s" % e |
32 time.sleep(1) | 33 time.sleep(1) |
33 | 34 |
35 dummy = os.getenv('DMXDUMMY') | |
36 if dummy: | |
37 print "dmxclient: DMX is in dummy mode." | |
38 def bogus(*args): | |
39 pass | |
40 outputlevels = bogus |