for i in range(1, 300, 3): elementid += 1 l = RGBLight( start_channel=i, name="item_%s" % elementid, ) dmx3.add_element(l) chase.elements.append(l) # deepcopy is used so that each element has an independent fireball effect # over time, if they shared one copy of the effect, then the fade would # be synchronized, which is not what we want fb = deepcopy(fireball) l.effects.append(fb) chase.end_pos = 70 chase.speed = 3 show.add_element(chase) # set the input interface to trigger the element # midi code 41 is the "Q" key on the qwerty keyboard for the midikeys app dispatcher.add_observer((0, 41), single) #Q dispatcher.add_observer((0, 70), chase) #J # startup the midi communication - runs in its own thread dispatcher.start() # start the show in a try block so that we can catch ^C and stop the midi # dispatcher thread try: show.run_live()
release_duration=0, sustain_value=1, ) l.hue = .96 l.saturation = 1 l.update_rgb() dmx3.add_element(l) pixels.elements.append(l) doors = LightGroup() show.add_element(doors) for i in range(10, 80, 10): simple = Chase(name="simplechase") simple.start_pos = 1 simple.speed = .5 simple.moveto = simple.end_pos = 11 simple.off_mode = "follow" simple.elements = pixels.elements[i:i + 11] show.add_element(simple) doors.elements.append(simple) # set the input interface to trigger the element # midi code 70 is the "V" key on the qwerty keyboard for the midikeys app dispatcher.add_observer((0, 65), doors) # startup the midi communication - runs in its own thread dispatcher.start() # start the show in a try block so that we can catch ^C and stop the midi # dispatcher thread
release_duration=0, sustain_value=1, ) l.hue = .59 l.saturation = 1 l.update_rgb() l.bell_mode = True # l.simple = True # add the light to the network dmx3.add_element(l) simple.elements.append(l) simple.start_pos = 12 # p.left_width = p.right_width = 10 simple.speed = .5 simple.moveto = simple.end_pos = 65 # simple.continuation_mode = 'loop' # simple.trigger_toggle = True simple.sweep = False simple.width = 3 show.add_element(simple) # set the input interface to trigger the element # midi code 70 is the "V" key on the qwerty keyboard for the midikeys app dispatcher.add_observer((0, 65), simple) # J p = Chase(name="bluechase") elementid = 0 for i in range(1, 360, 3):
release_duration=0, sustain_value=1, ) l.hue = .96 l.saturation = 1 l.update_rgb() dmx3.add_element(l) pixels.elements.append(l) doors = LightGroup() show.add_element(doors) for i in range(10, 80, 10): simple = Chase(name="simplechase") simple.start_pos = 1 simple.speed = .5 simple.moveto = simple.end_pos = 11 simple.off_mode = "follow" simple.elements = pixels.elements[i:i+11] show.add_element(simple) doors.elements.append(simple) # set the input interface to trigger the element # midi code 70 is the "V" key on the qwerty keyboard for the midikeys app dispatcher.add_observer((0,65), doors) # startup the midi communication - runs in its own thread dispatcher.start() # start the show in a try block so that we can catch ^C and stop the midi # dispatcher thread
decay_duration=0, release_duration=0, sustain_value=1, ) l.hue = .59 l.saturation = 1 l.update_rgb() l.bell_mode = True # l.simple = True # add the light to the network dmx3.add_element(l) simple.elements.append(l) simple.start_pos = 12 # p.left_width = p.right_width = 10 simple.speed = .5 simple.moveto = simple.end_pos = 65 # simple.continuation_mode = 'loop' # simple.trigger_toggle = True simple.sweep = False simple.width = 3 show.add_element(simple) # set the input interface to trigger the element # midi code 70 is the "V" key on the qwerty keyboard for the midikeys app dispatcher.add_observer((0, 65), simple) # J p = Chase(name="bluechase") elementid = 0 for i in range(1, 360, 3): elementid += 1