kleine Aenderungen

This commit is contained in:
Zoredh 2019-03-26 22:04:35 +01:00
parent cfaef0fba3
commit 6ff270e7c0

13
drum.py
View file

@ -16,10 +16,10 @@ JOYSTICKS = []
PRESSED = 0
DRUMSETS = [
[41,38,45,42,36,49],
[48,38,46,42,36,49],
[43,38,47,49,36,51],
[43,38,47,42,36,57]
[43,38,47,42,36,57],
[41,38,45,42,36,49]
]
DRUMSET = 0
@ -54,6 +54,15 @@ def proc_event(event,midi_out):
try:
if event.button < 6:
PRESSED = event.button + 1
elif event.button == 6:
DRUMSET = 1
print DRUMSET
elif event.button == 7:
DRUMSET = 2
print DRUMSET
elif event.button == 8:
DRUMSET = 0
print DRUMSET
elif event.button == 13:
DRUMSET = (DRUMSET - 1) % len(DRUMSETS)
print DRUMSET