Ejemplo n.º 1
0
    elementid += 1
    l = RGBLight(
        start_channel=i,
        name="pulse_%s" % elementid,
        attack_duration=0,
        release_duration=0,
        sustain_value=1,
    )
    l.hue = random()
    l.saturation = 1
    l.update_rgb()
    # l.simple = True
    # add the light to the network
    show.add_element(l, network=dmx3)
    p.elements.append(l)
    e = Twinkle()
    e.targets.append(l)
    e.off_max = .4
    e.off_min = .03
    e.on_min = .08
    e.on_max = .3
    e.intensity_min = .004
    e.intensity_max = .12

    show.effects.append(e)

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)
Ejemplo n.º 2
0
    elementid += 1
    l = RGBLight(
            start_channel=i,
            name="pulse_%s" % elementid,
            attack_duration=0,
            release_duration=0,
            sustain_value=1,
            )
    l.hue = random()
    l.saturation = 1
    l.update_rgb()
    # l.simple = True
    # add the light to the network
    show.add_element(l, network=dmx3)
    p.elements.append(l)
    e = Twinkle()
    e.targets.append(l)
    e.off_max = .4
    e.off_min = .03
    e.on_min = .08
    e.on_max = .3
    e.intensity_min = .004
    e.intensity_max = .12

    show.effects.append(e)



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
Ejemplo n.º 3
0
p = LightGroup(name="bluechase")
elementid = 0
# for i in range(1,360,3):
for i in range(1, 180, 3):
    # for i in range(1,2):
    elementid += 1
    l = RGBLight(start_channel=i, name="pulse_%s" % elementid, attack_duration=0, release_duration=0, sustain_value=1)
    l.hue = random()
    l.saturation = 1
    l.update_rgb()
    # l.simple = True
    # add the light to the network
    show.add_element(l, network=dmx3)
    p.elements.append(l)
    e = Twinkle()
    e.targets.append(l)
    e.off_max = 1
    e.off_min = 0.1
    e.on_min = 0.1
    e.on_max = 0.3
    e.intensity_min = 0.004
    e.intensity_max = 0.12

    show.effects.append(e)


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)
Ejemplo n.º 4
0
    l = RGBLight(
            start_channel=i,
            name="pulse_%s" % elementid,

            attack_duration=.3,
            release_duration=.3,
            sustain_value=1,
            )
    l.hue = random()
    l.saturation = 1
    l.update_rgb()
    # l.simple = True
    # add the light to the network
    show.add_element(l, network=dmx3)
    p.elements.append(l)
    e = Twinkle()
    e.targets.append(l)

    e.off_max = 8
    e.off_min = 3
    e.on_min = 1
    e.on_max = 3

    e.intensity_min = .09

    show.effects.append(e)



show.add_element(p)
# set the input interface to trigger the element
Ejemplo n.º 5
0
    elementid += 1
    l = RGBLight(
        start_channel=i,
        name="pulse_%s" % elementid,
        attack_duration=.3,
        release_duration=.3,
        sustain_value=1,
    )
    l.hue = random()
    l.saturation = 1
    l.update_rgb()
    # l.simple = True
    # add the light to the network
    show.add_element(l, network=dmx3)
    p.elements.append(l)
    e = Twinkle()
    e.targets.append(l)

    e.off_max = 8
    e.off_min = 3
    e.on_min = 1
    e.on_max = 3

    e.intensity_min = .09

    show.effects.append(e)

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)