@@ -9,71 +9,73 @@ def __init__(self, core, out, mode, index=0, octave_separation=0):
9
9
self .index = index
10
10
self .octave_separation = octave_separation
11
11
12
+ print ("Launchpad" , mode , 'Connected! (#' + str (index ) + ")" )
13
+
12
14
# self.pos = glm.ivec2(0, 0)
13
15
14
16
def button (self , x , y ):
15
17
# if self.mode == 'lpx':
16
18
if y == - 1 :
17
19
if x == 0 :
18
- if self .core .options .debug :
20
+ if True : # self.core.options.debug:
19
21
print ("OCT+" )
20
22
self .octave += 1
21
23
self .core .clear_marks (use_lights = False )
22
24
self .core .send_all_notes_off ()
23
25
elif x == 1 :
24
- if self .core .options .debug :
26
+ if True : # self.core.options.debug:
25
27
print ("OCT-" )
26
28
self .octave -= 1
27
29
self .core .clear_marks (use_lights = False )
28
30
self .core .send_all_notes_off ()
29
31
elif x == 2 :
30
- if self .core .options .debug :
32
+ if True : # self.core.options.debug:
31
33
print ("MOV-" )
32
34
self .core .move_board (- 1 )
33
35
# self.pos.x -= 1
34
36
elif x == 3 :
35
- if self .core .options .debug :
37
+ if True : # self.core.options.debug:
36
38
print ("MOV+" )
37
39
self .core .move_board (1 )
38
40
elif x == 4 :
39
- if self .core .options .debug :
41
+ if True : # self.core.options.debug:
40
42
print ("TRA-" )
41
43
self .core .set_tonic (self .core .tonic - 1 )
42
44
elif x == 5 :
43
- if self .core .options .debug :
45
+ if True : # self.core.options.debug:
44
46
print ("TRA+" )
45
47
self .core .set_tonic (self .core .tonic + 1 )
46
48
if x == 8 :
47
49
if y == 0 :
48
- if self .core .options .debug :
50
+ if True : # self.core.options.debug:
49
51
print ("SCL+" )
50
52
self .core .next_scale ()
51
53
elif y == 1 :
52
- if self .core .options .debug :
54
+ if True : # self.core.options.debug:
53
55
print ("SCL-" )
54
56
self .core .prev_scale ()
55
57
elif y == 2 :
56
- if self .core .options .debug :
58
+ if True : # self.core.options.debug:
57
59
print ("MOD+" )
58
60
self .core .next_mode ()
59
61
elif y == 3 :
60
- if self .core .options .debug :
62
+ if True : # self.core.options.debug:
61
63
print ("MOD-" )
62
64
self .core .prev_mode ()
63
65
elif y == 4 :
64
- if self .core .options .debug :
66
+ if True : # self.core.options.debug:
65
67
print ("BANK+" )
66
68
self .core .next_bank ()
67
69
elif y == 5 :
68
- if self .core .options .debug :
70
+ if True : # self.core.options.debug:
69
71
print ("BANK-" )
70
72
self .core .prev_bank ()
71
73
elif y == 6 :
72
- if self .core .options .debug :
74
+ if True : # self.core.options.debug:
73
75
print ("PROG+" )
74
76
self .core .next_program ()
75
77
elif y == 7 :
76
- if self .core .options .debug :
78
+ if True : # self.core.options.debug:
77
79
print ("PROG-" )
78
80
self .core .prev_program ()
79
81
0 commit comments