コード例 #1
0
        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)

# startup the midi communication - runs in its own thread
dispatcher.start()
コード例 #2
0
ファイル: twinkle3.py プロジェクト: ptone/BirdFish
            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)
コード例 #3
0
        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 = .1
    e.on_min = .1
    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)

# startup the midi communication - runs in its own thread
dispatcher.start()
コード例 #4
0
ファイル: twinkle.py プロジェクト: ptone/BirdFish
            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)