Esempio n. 1
0
from birdfish.input.midi import MidiDispatcher
from birdfish.lights import RGBLight, Chase, LightShow, LightGroup
from birdfish.output.lumos_network import LumosNetwork

# create a light show - manages the updating of all lights
show = LightShow()

# Create a network - in this case, universe 3
dmx3 = LumosNetwork(3)

# add the network to the show
show.networks.append(dmx3)

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


class CustomColorChanger(LightGroup):
    def trigger(self, sig_intensity, **kwargs):
        for e in self.elements:
            e.hue = random()
            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(
Esempio n. 2
0
from birdfish import tween

# from birdfish.log_setup import logger
# logger.setLevel(10)

# create a light show - manages the updating of all lights
show = LightShow()

# Create a network - in this case, universe 3
dmx3 = LumosNetwork(3)

# add the network to the show
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=61,
        name="singletestb",
        )

# Define the fireball effect
# this consists of a colorshift that has changes to hue, saturation and intensity
# the use of the OUT_CIRC shape is used to make most of the change happen
# right away, then slowly complete the rest
# the add shift take a start, end, duration, and shape
fireball_duration = 2
fireball = ColorShift()
Esempio n. 3
0
from birdfish.lights import RGBLight, PulseChase, LightShow
from birdfish.output.lumos_network import LumosNetwork
from birdfish import tween


# create a light show - manages the updating of all lights
show = LightShow()

# Create a network - in this case, universe 3
dmx3 = LumosNetwork(3)

# add the network to the show
show.networks.append(dmx3)

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


p = PulseChase(name="greenpulse",
        start_pos=12,
        end_pos=65,
        speed=3,
        move_tween=tween.IN_OUT_CUBIC,
        )

elementid = 0
for i in range(1,360,3):
    elementid += 1
    l = RGBLight(
            start_channel=i,
Esempio n. 4
0
from birdfish.input.midi import MidiDispatcher
from birdfish.lights import LightElement, LightShow
from birdfish.output.lumos_network import LumosNetwork


# create a light show - manages the updating of all lights
show = LightShow()

# Create a network - in this case, universe 3
dmx3 = LumosNetwork(3)

# add the network to the show
show.networks.append(dmx3)

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

# create a single channel light element
single = LightElement(
        start_channel=1,
        name="singletest",
        attack_duration=1,
        release_duration=1.5,
        )

# add the light to a network
show.add_element(single, network=dmx3)

# a blinker is configured by how many times it should blink per second
# 2 is the default
blinker = Blink(frequency=3)
Esempio n. 5
0
from birdfish import tween

# from birdfish.log_setup import logger
# logger.setLevel(10)

# create a light show - manages the updating of all lights
show = LightShow()

# Create a network - in this case, universe 3
dmx3 = LumosNetwork(3)

# add the network to the show
show.networks.append(dmx3)

# create an input interface
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
Esempio n. 6
0

# from birdfish.log_setup import logger
# logger.setLevel(10)

# create a light show - manages the updating of all lights
show = LightShow()

# Create a network - in this case, universe 3
dmx3 = LumosNetwork(3)

# add the network to the show
show.networks.append(dmx3)

# 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
Esempio n. 7
0

# from birdfish.log_setup import logger
# logger.setLevel(10)

# create a light show - manages the updating of all lights
show = LightShow()

# Create a network - in this case, universe 3
dmx3 = LumosNetwork(3)

# add the network to the show
show.networks.append(dmx3)

# create an input interface
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
Esempio n. 8
0
from birdfish import tween

# from birdfish.log_setup import logger
# logger.setLevel(10)

# create a light show - manages the updating of all lights
show = LightShow()

# Create a network - in this case, universe 3
dmx3 = LumosNetwork(3)

# add the network to the show
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=61,
    name="singletestb",
)

# Define the fireball effect
# this consists of a colorshift that has changes to hue, saturation and intensity
# the use of the OUT_CIRC shape is used to make most of the change happen
# right away, then slowly complete the rest
# the add shift take a start, end, duration, and shape
fireball_duration = 2
fireball = ColorShift()
Esempio n. 9
0
from birdfish import tween

# from birdfish.log_setup import logger
# logger.setLevel(10)

# create a light show - manages the updating of all lights
show = LightShow()

# Create a network - in this case, universe 3
dmx3 = LumosNetwork(3)

# add the network to the show
show.networks.append(dmx3)

# 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