Example #1
0
        super(CustomColorChanger, self).trigger(sig_intensity, **kwargs)


p = CustomColorChanger(name="bluechase")
elementid = 0
for i in range(1, 360, 3):
    elementid += 1
    l = RGBLight(
        start_channel=i,
        name="pulse_%s" % elementid,
        attack_duration=1,
        decay_duration=.8,
        release_duration=0,
        sustain_value=0,
    )
    l.hue = random()
    l.saturation = 1
    l.update_rgb()
    # l.simple = True
    # add the light to the network
    dmx3.add_element(l)
    p.elements.append(l)

show.add_element(p)
# set the input interface to trigger the element
# midi code 70 is the "J" key on the qwerty keyboard for the midikeys app
dispatcher.add_observer((0, 70), p)

# startup the midi communication - runs in its own thread
dispatcher.start()
Example #2
0
#        move_tween=tween.IN_OUT_CUBIC,
#        )
#
elementid = 0
for i in range(1, 27, 3):
    elementid += 1
    l = RGBLight(
        start_channel=i,
        name="pulse_%s" % elementid,
        attack_duration=0,
        release_duration=0,
        sustain_value=1,
        #simple=True
    )
    #l.hue = random.random() # * 255
    l.hue = .74
    l.saturation = 1
    l.update_rgb()
    show.add_element(l, network=dmx)
    #l.simple = True
    # add the light to the network
    #dmx.add_element(l)
    #p.elements.append(l)
    dispatcher.add_map('/1/fader1', l, 'hue')
    dispatcher.add_map('/1/fader2', l, 'intensity')
    #    l.effects.append(pulser)

    # 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)
    dispatcher.add_trigger('/1/push1', l)
Example #3
0
        speed=3,
        move_tween=tween.IN_OUT_CUBIC,
        )

elementid = 0
for i in range(1,360,3):
    elementid += 1
    l = RGBLight(
            start_channel=i,
            name="pulse_%s" % elementid,
            attack_duration=0,
            release_duration=0,
            sustain_value=1,
            )
    # l.hue = random.random() * 255
    l.hue = .74
    l.saturation = 1
    l.update_rgb()
    # l.simple = True
    # add the light to the network
    dmx3.add_element(l)
    p.elements.append(l)
    osc_dispatcher.add_map('/2/fader2', l, 'hue')


p.start_pos = 12
# p.left_width = p.right_width = 10
p.left_width = 10
p.right_width = 10
p.left_shape = p.right_shape = tween.OUT_CIRC
p.speed = 3
Example #4
0
show.networks.append(dmx3)

# create an input interface
dispatcher = MidiDispatcher("MidiKeys")
osc_dispatcher = OSCDispatcher(('0.0.0.0', 8998))

# create a single RGB light element
single = RGBLight(
    start_channel=10,
    name="singletestb",
    attack_duration=0,
    decay_duration=0,
    release_duration=.75,
    sustain_value=1,
)
single.hue = random.random()
single.saturation = 1
single.update_rgb()
single.bell_mode = True

oscsingle = RGBLight(
    start_channel=91,
    name="singletestb",
    attack_duration=0,
    decay_duration=0,
    release_duration=.75,
    sustain_value=1,
)

oscsingle.hue = random.random()
oscsingle.saturation = 1
Example #5
0
            e.update_rgb()
        super(CustomColorChanger, self).trigger(sig_intensity, **kwargs)

p = CustomColorChanger(name="bluechase")
elementid = 0
for i in range(1,360,3):
    elementid += 1
    l = RGBLight(
            start_channel=i,
            name="pulse_%s" % elementid,
            attack_duration=1,
            decay_duration=.8,
            release_duration=0,
            sustain_value=0,
            )
    l.hue = random()
    l.saturation = 1
    l.update_rgb()
    # l.simple = True
    # add the light to the network
    dmx3.add_element(l)
    p.elements.append(l)



show.add_element(p)
# set the input interface to trigger the element
# midi code 70 is the "J" key on the qwerty keyboard for the midikeys app
dispatcher.add_observer((0,70), p)

Example #6
0
# create an input interface
dispatcher = MidiDispatcher("MidiKeys")

simple = Chase(name="simplechase")
elementid = 0
for i in range(1, 360, 3):
    elementid += 1
    l = RGBLight(
            start_channel=i,
            name="item_%s" % elementid,
            attack_duration=0,
            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
Example #7
0
dispatcher = MidiDispatcher("MidiKeys")

pixels = LightGroup()

elementid = 0
for i in range(1, 360, 3):
    elementid += 1
    l = RGBLight(
        start_channel=i,
        name="pulse_%s" % elementid,
        attack_duration=0,
        decay_duration=0,
        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]
Example #8
0
        speed=3,
        move_tween=tween.IN_OUT_CUBIC,
        )

elementid = 0
for i in range(1,360,3):
    elementid += 1
    l = RGBLight(
            start_channel=i,
            name="pulse_%s" % elementid,
            attack_duration=0,
            release_duration=0,
            sustain_value=1,
            )
    # l.hue = random.random() * 255
    l.hue = .74
    l.saturation = 1
    l.update_rgb()
    # l.simple = True
    # add the light to the network
    dmx3.add_element(l)
    p.elements.append(l)


p.start_pos = 12
# p.left_width = p.right_width = 10
p.left_width = 10
p.right_width = 10
p.left_shape = p.right_shape = tween.OUT_CIRC
p.speed = 3
p.moveto = p.end_pos = 65
Example #9
0
dispatcher = MidiDispatcher("MidiKeys")

pixels = LightGroup()

elementid = 0
for i in range(1,360,3):
    elementid += 1
    l = RGBLight(
            start_channel=i,
            name="pulse_%s" % elementid,
            attack_duration=0,
            decay_duration=0,
            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]
Example #10
0
show.networks.append(dmx3)

# create an input interface
dispatcher = MidiDispatcher("MidiKeys")
osc_dispatcher = OSCDispatcher(('0.0.0.0', 8998))

# create a single RGB light element
single = RGBLight(
        start_channel=10,
        name="singletestb",
        attack_duration=0,
        decay_duration=0,
        release_duration=.75,
        sustain_value=1,
        )
single.hue = random.random()
single.saturation = 1
single.update_rgb()
single.bell_mode = True

oscsingle = RGBLight(
        start_channel=91,
        name="singletestb",
        attack_duration=0,
        decay_duration=0,
        release_duration=.75,
        sustain_value=1,
        )

oscsingle.hue = random.random()
oscsingle.saturation = 1
Example #11
0
    speed=3,
    move_tween=tween.IN_OUT_CUBIC,
)

elementid = 0
for i in range(1, 360, 3):
    elementid += 1
    l = RGBLight(
        start_channel=i,
        name="pulse_%s" % elementid,
        attack_duration=0,
        release_duration=0,
        sustain_value=1,
    )
    # l.hue = random.random() * 255
    l.hue = .74
    l.saturation = 1
    l.update_rgb()
    # l.simple = True
    # add the light to the network
    dmx3.add_element(l)
    p.elements.append(l)

p.start_pos = 12
# p.left_width = p.right_width = 10
p.left_width = 10
p.right_width = 10
p.left_shape = p.right_shape = tween.OUT_CIRC
p.speed = 3
p.moveto = p.end_pos = 65
p.trigger_toggle = True
Example #12
0
# create an input interface
dispatcher = MidiDispatcher("MidiKeys")

simple = Chase(name="simplechase")
elementid = 0
for i in range(1, 360, 3):
    elementid += 1
    l = RGBLight(
        start_channel=i,
        name="item_%s" % elementid,
        attack_duration=0,
        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