Exemplo n.º 1
0
def Start(port):

    SendOSC(gstt.TouchOSCIP, gstt.TouchOSCPort, '/bhoreal/on', [1])
    Cls(port)
    time.sleep(0.2)

    # Rainbow
    for color in range(0, 64, 1):
        msg = [NOTE_ON, color, color * 2]
        midi3.send(msg, "Bhoreal")

    time.sleep(0.3)
    Cls(port)
    DisplayUpdate()
Exemplo n.º 2
0
def ClsPatchs(port):
    for led in range(0, 24, 1):
        msg = [NOTE_OFF, led, 0]
        midi3.send(msg, "launchpad")
Exemplo n.º 3
0
def PadRightOff(number):
    msg = [NOTE_OFF, LaunchRight[number - 1], 0]
    midi3.send(msg, "Launchpad")
    PadRights[number - 1] = 0
Exemplo n.º 4
0
def PadRightOn(number, color):
    msg = [NOTE_ON, LaunchRight[number - 1], color]
    midi3.send(msg, "Launchpad")
    PadRights[number - 1] = color
Exemplo n.º 5
0
def PadTopOff(number):
    msg = [CONTROLLER_CHANGE, LaunchTop[number - 1], 0]
    midi3.send(msg, "Launchpad")
    PadTops[number - 1] = 0
Exemplo n.º 6
0
def PadTopOn(number, color):
    msg = [CONTROLLER_CHANGE, LaunchTop[number - 1], color]
    midi3.send(msg, "Launchpad")
    PadTops[number - 1] = color
Exemplo n.º 7
0
def PadNoteOffXY(x, y):
    msg = [NOTE_OFF, PadNoteXY(x, y), 0]
    #print(msg)
    midi3.send(msg, "Launchpad")
    PadLeds[BhorNoteXY(x, y)] = 0
Exemplo n.º 8
0
def PadNoteOnXY(x, y, color):
    msg = [NOTE_ON, PadNoteXY(x, y), color]
    #print(msg)
    midi3.send(msg, "Launchpad")
    PadLeds[BhorNoteXY(x, y)] = color
Exemplo n.º 9
0
def ClsPatch(port):
    for led in range(0, 40, 1):
        msg = [NOTE_OFF, led, 0]
        midi3.send(msg, "Bhoreal")
Exemplo n.º 10
0
def AllColor(port, color):
    for led in range(0, 64, 1):
        msg = [NOTE_ON, led, color]
        midi3.send(msg, "Bhoreal")
Exemplo n.º 11
0
def NoteOffXY(x, y):
    msg = [NOTE_OFF, NoteXY(x, y), 0]
    midi3.send(msg, "Bhoreal")
    gstt.BhorLeds[NoteXY(x, y)] = 0
Exemplo n.º 12
0
def NoteOnXY(x, y, color):
    #print x,y
    msg = [NOTE_ON, NoteXY(x, y), color]
    midi3.send(msg, "Bhoreal")
    gstt.BhorLeds[NoteXY(x, y)] = color
Exemplo n.º 13
0
def NoteOff(note):
    msg = [NOTE_OFF, note, 0]
    midi3.send(msg, "Bhoreal")
    gstt.BhorLeds[note] = 0
Exemplo n.º 14
0
def NoteOn(note, color):

    #print ("bhoreal noteon", note, color)
    msg = [NOTE_ON, note, color]
    midi3.send(msg, "Bhoreal")
    gstt.BhorLeds[note] = color