kleine Aenderungen
This commit is contained in:
parent
cfaef0fba3
commit
6ff270e7c0
1 changed files with 11 additions and 2 deletions
13
drum.py
13
drum.py
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue