Exemple #1
0
    )
    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
try:
    show.run_live()
Exemple #2
0
            )
    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
try:
    show.run_live()
Exemple #3
0
            start_channel=i,
            name="pulse_%s" % elementid,
            attack_duration=.2,
            decay_duration=0,
            release_duration=0.2,
            sustain_value=1,
            )
    l.hue = .1
    l.saturation = 1
    l.update_rgb()
    # l.simple = True
    # add the light to the network
    dmx3.add_element(l)
    highlow.elements.append(l)

highlow.off_mode = "reverse"
highlow.bell_mode = True
show.add_element(highlow)
# set the input interface to trigger the element
# midi code 70 is the "l" key on the qwerty keyboard for the midikeys app
dispatcher.add_observer((0, 73), highlow)  # L

# ----------------------------------------------------------------------------
follow_chase = Chase(
        name="follow chase",
        start_pos=12,
        end_pos=65,
        )
follow_chase.off_mode = "follow"

elementid = 0
Exemple #4
0
        start_channel=i,
        name="pulse_%s" % elementid,
        attack_duration=.2,
        decay_duration=0,
        release_duration=0.2,
        sustain_value=1,
    )
    l.hue = .1
    l.saturation = 1
    l.update_rgb()
    # l.simple = True
    # add the light to the network
    dmx3.add_element(l)
    highlow.elements.append(l)

highlow.off_mode = "reverse"
highlow.bell_mode = True
show.add_element(highlow)
# set the input interface to trigger the element
# midi code 70 is the "l" key on the qwerty keyboard for the midikeys app
dispatcher.add_observer((0, 73), highlow)  # L

# ----------------------------------------------------------------------------
follow_chase = Chase(
    name="follow chase",
    start_pos=12,
    end_pos=65,
)
follow_chase.off_mode = "follow"

elementid = 0