Esempio n. 1
0
from copy import deepcopy
import sys

from birdfish import colors
from birdfish.effects import ColorShift
from birdfish.input.midi import MidiDispatcher
from birdfish.lights import RGBLight, LightShow, Chase
from birdfish.output.lumos_network import LumosNetwork
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",
Esempio n. 2
0
import sys

from birdfish.effects import Blink
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)
Esempio n. 3
0
from random import random
import sys

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):
Esempio n. 4
0
import sys
import random

from birdfish.input.osc import OSCDispatcher
from birdfish.effects import Blink, Pulser
from birdfish.lights import LightElement, RGBLight, PulseChase, LightShow
from birdfish.output.solriserdmx import SolRiserDmx
from birdfish import tween

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

# Create a network - in this case, universe 3
dmx = SolRiserDmx('/dev/ttyATH0')
#dmx = SolRiserDmx('/dev/tty.usbmodem1d21')

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

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

## create a single channel light element
#single = LightElement(
#        start_channel=1,
#        name="singletest",
#        attack_duration=1,
#        release_duration=1.5,
#        )
Esempio n. 5
0
import sys

from birdfish.input.midi import MidiDispatcher
from birdfish.input.osc import OSCDispatcher
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
Esempio n. 6
0
import sys

from birdfish.input.midi import MidiDispatcher
from birdfish.lights import RGBLight, Chase, LightShow, LightGroup
from birdfish.output.lumos_network import LumosNetwork
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,
Esempio n. 7
0
import sys

from birdfish.input.midi import MidiDispatcher
from birdfish.lights import RGBLight, Chase, LightShow
from birdfish.output.lumos_network import LumosNetwork
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,
Esempio n. 8
0
import sys

from birdfish.input.midi import MidiDispatcher
from birdfish.lights import RGBLight, Chase, LightShow, LightGroup
from birdfish.output.lumos_network import LumosNetwork
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,
Esempio n. 9
0
from random import random
import sys

from birdfish.effects import Twinkle
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")


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,
Esempio n. 10
0
import sys

from birdfish.input.midi import MidiDispatcher
from birdfish.lights import RGBLight, Chase, LightShow
from birdfish.output.lumos_network import LumosNetwork
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,