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()
def ClsPatchs(port): for led in range(0, 24, 1): msg = [NOTE_OFF, led, 0] midi3.send(msg, "launchpad")
def PadRightOff(number): msg = [NOTE_OFF, LaunchRight[number - 1], 0] midi3.send(msg, "Launchpad") PadRights[number - 1] = 0
def PadRightOn(number, color): msg = [NOTE_ON, LaunchRight[number - 1], color] midi3.send(msg, "Launchpad") PadRights[number - 1] = color
def PadTopOff(number): msg = [CONTROLLER_CHANGE, LaunchTop[number - 1], 0] midi3.send(msg, "Launchpad") PadTops[number - 1] = 0
def PadTopOn(number, color): msg = [CONTROLLER_CHANGE, LaunchTop[number - 1], color] midi3.send(msg, "Launchpad") PadTops[number - 1] = color
def PadNoteOffXY(x, y): msg = [NOTE_OFF, PadNoteXY(x, y), 0] #print(msg) midi3.send(msg, "Launchpad") PadLeds[BhorNoteXY(x, y)] = 0
def PadNoteOnXY(x, y, color): msg = [NOTE_ON, PadNoteXY(x, y), color] #print(msg) midi3.send(msg, "Launchpad") PadLeds[BhorNoteXY(x, y)] = color
def ClsPatch(port): for led in range(0, 40, 1): msg = [NOTE_OFF, led, 0] midi3.send(msg, "Bhoreal")
def AllColor(port, color): for led in range(0, 64, 1): msg = [NOTE_ON, led, color] midi3.send(msg, "Bhoreal")
def NoteOffXY(x, y): msg = [NOTE_OFF, NoteXY(x, y), 0] midi3.send(msg, "Bhoreal") gstt.BhorLeds[NoteXY(x, y)] = 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
def NoteOff(note): msg = [NOTE_OFF, note, 0] midi3.send(msg, "Bhoreal") gstt.BhorLeds[note] = 0
def NoteOn(note, color): #print ("bhoreal noteon", note, color) msg = [NOTE_ON, note, color] midi3.send(msg, "Bhoreal") gstt.BhorLeds[note] = color