Changeset - 8da6dc78999b
[Not reviewed]
default
0 0 1
David McClosky - 20 years ago 2005-06-18 17:10:10
dmcc@bigasterisk.com
certainly didn't forget to add Effects.py
1 file changed with 21 insertions and 0 deletions:
0 comments (0 inline, 0 general)
light9/Effects.py
Show inline comments
 
new file 100644
 
import random
 
import light9.Submaster as Submaster
 
from chase import chase as chase_logic
 

	
 
__all__ = ['chase']
 

	
 
thirds = 'third-l', 'third-c', 'third-r'
 
thirds_bounce = 'third-l', 'third-c', 'third-r', 'third-c'
 
flutter = ['scoop-l', 'scoop-c', 'scoop-r', 'down-c', 'down-l', 'down-r'] * 5
 
random.shuffle(flutter)
 

	
 
def chase(t, ontime=0.5, offset=0.2, onval=1.0, 
 
          offval=0.0, names=None, combiner=max):
 
    """names is list of sub or channel names"""
 
    sub_vals = {}
 
    chase_vals = chase_logic(t, ontime, offset, onval, offval, names, combiner)
 
    for name, value in chase_vals.items():
 
        sub = Submaster.get_sub_by_name(name)
 
        sub_vals[sub] = value
 

	
 
    return Submaster.combine_subdict(sub_vals)
0 comments (0 inline, 0 general)