This commit is contained in:
sam 2021-04-11 22:22:33 +02:00
parent ba927a9ab4
commit fe6a56efaa
2 changed files with 5 additions and 4 deletions

View File

@ -397,7 +397,7 @@ def MidinProcess(inqueue, portname):
#print(param["name"]+"/"+ str(msg[1])+"/"+str(msg[2])) #print(param["name"]+"/"+ str(msg[1])+"/"+str(msg[2]))
SendOSC(param["name"],[msg[0]-175-1, msg[1], msg[2]]) SendOSC(param["name"],[msg[0]-175-1, msg[1], msg[2]])
toKeyevent(param["name"]+"/"+ str(MidiChannel)+"/"+str(msg[1])+"/"+str(msg[2])) toKeyevent(param["name"]+"/"+ str(MidiChannel)+"/"+str(msg[1])+"/"+str(msg[2]))
toKey(param["name"],str(MidiChannel)+"/"+str(msg[1])+"/"+str(msg[2]))
if msg[0] == TIMING_CLOCK: if msg[0] == TIMING_CLOCK:
now = time.time() now = time.time()
@ -487,7 +487,7 @@ def NoteOn(note, color, mididest, midichannel=0):
ClsCli3() ClsCli3()
if 6< y < 9: if 6< y < 9:
ClsCli4() ClsCli4()
if y < 8 and x < 8:
PadNoteOnXY(x,y,red) PadNoteOnXY(x,y,red)
@ -851,6 +851,7 @@ def PadNoteOffXY(x,y):
PadLeds[BhorNoteXY(x,y)]=0 PadLeds[BhorNoteXY(x,y)]=0
def PadNoteXY(x,y): def PadNoteXY(x,y):
#print(str(x),str(y))
note = LaunchLedMatrix[int(y-1)][int(x-1)] note = LaunchLedMatrix[int(y-1)][int(x-1)]
return note return note
@ -901,7 +902,7 @@ def TopUpdate(button, color):
def RightUpdate(): def RightUpdate():
for pad in range(8): for pad in range(8):
print(pad,PadRight[pad]) #print(pad,PadRight[pad])
PadRightOn(pad, PadRight[pad]) PadRightOn(pad, PadRight[pad])
if PadRight[pad] == 0: if PadRight[pad] == 0:
SendOSCUI('/pad/r'+ str(pad) +'/button', [0]) SendOSCUI('/pad/r'+ str(pad) +'/button', [0])