Changeset - b6ba0e7d126b
[Not reviewed]
default
0 2 0
drewp@bigasterisk.com - 10 years ago 2015-06-14 20:26:36
drewp@bigasterisk.com
workaround for missing effects in songs
Ignore-this: 8433bee972cfc440067149c45e1ffab6
2 files changed with 13 insertions and 1 deletions:
0 comments (0 inline, 0 general)
light9/Effects.py
Show inline comments
 
@@ -22,7 +22,7 @@ class Strip(object):
 
    pixels = []
 

	
 
    def __repr__(self):
 
        return '<Strip which=%r px0=%r>' % (self.which, self.pixels[0,:])
 
        return '<Strip which=%r px0=%r>' % (self.which, self.pixels[0])
 
    
 
    @classmethod
 
    def solid(cls, which='L', color=(1,1,1), hsv=None):
light9/effecteval/effectloop.py
Show inline comments
 
@@ -234,6 +234,18 @@ class LedLoop(EffectLoop):
 
        
 
        for out in outputs:
 
            log.debug('combine output %r', out)
 

	
 

	
 
            # workaround- somehow these subs that drive fx aren't
 
            # sending their fx, so we react to the sub
 
            if isinstance(out, Submaster.Submaster) and '*' in out.name:
 
                level = float(out.name.split('*')[1])
 
                n = out.name.split('*')[0]
 
                if n == 'widered': out = Effects.Strip.solid('W', (1,0,0)) * level
 
                if n == 'widegreen': out = Effects.Strip.solid('W', (0,1,0)) * level
 
                if n == 'wideblue': out = Effects.Strip.solid('W', (0,0,1)) * level
 
                if n == 'whiteled': out = Effects.Strip.solid('W', (1,.5,.5)) * level
 
 
 
            if isinstance(out, Effects.Blacklight):
 
                # no picking yet
 
                #key = 'blacklight%s' % out.which
0 comments (0 inline, 0 general)