# HG changeset patch # User drewp@bigasterisk.com # Date 1434313596 0 # Node ID b6ba0e7d126bafb5be422bd3d28e83bad5fd0aa8 # Parent 0bfaeaa40cfed3735f8135cce6307ab6acd8e319 workaround for missing effects in songs Ignore-this: 8433bee972cfc440067149c45e1ffab6 diff -r 0bfaeaa40cfe -r b6ba0e7d126b light9/Effects.py --- a/light9/Effects.py Sun Jun 14 20:05:18 2015 +0000 +++ b/light9/Effects.py Sun Jun 14 20:26:36 2015 +0000 @@ -22,7 +22,7 @@ pixels = [] def __repr__(self): - return '' % (self.which, self.pixels[0,:]) + return '' % (self.which, self.pixels[0]) @classmethod def solid(cls, which='L', color=(1,1,1), hsv=None): diff -r 0bfaeaa40cfe -r b6ba0e7d126b light9/effecteval/effectloop.py --- a/light9/effecteval/effectloop.py Sun Jun 14 20:05:18 2015 +0000 +++ b/light9/effecteval/effectloop.py Sun Jun 14 20:26:36 2015 +0000 @@ -234,6 +234,18 @@ 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