@@ -18,26 +18,10 @@ void drawMidiOSCMenu() {
18
18
19
19
int menuWidth = 100 ;
20
20
21
- /*
22
- cp5.addTextfield("inputPort")
23
- .setPosition(20, nextY())
24
- .setSize(menuWidth, 20)
25
- .setValue("8000")
26
- .setAutoClear(false);
27
-
28
- cp5.addTextfield("outputPort")
29
- .setPosition(20, nextY())
30
- .setSize(menuWidth, 20)
31
- .setValue("8001")
32
- .setAutoClear(false);
33
- */
34
-
35
-
36
21
midiInDropdown = cp5. addDropdownList(" midiIn" )
37
22
.setPosition(20 , nextY())
38
23
.setSize(menuWidth, 50 );
39
24
40
-
41
25
midiOutDropdown = cp5. addDropdownList(" midiOut" )
42
26
.setPosition(20 , nextY())
43
27
.setSize(menuWidth, 50 );
@@ -93,34 +77,3 @@ private void log(String msg) {
93
77
println (" Debug: " + msg);
94
78
logArea. setText(msg + " \n " + logArea. getText());
95
79
}
96
-
97
- // get midi
98
-
99
- void noteOn (int channel , int pitch , int velocity ) {
100
-
101
- // FX
102
- for (int i= 0 ; i< midiFX. length; i++ ) {
103
- if (midiFX[i] == pitch) {
104
- if (FXBtns [i]. getState()) {
105
- FXBtns [i]. setState(false );
106
- } else {
107
- FXBtns [i]. setState(true );
108
- }
109
- println (" FX " + i + " " + FXBtns [i]. getState());
110
- }
111
- }
112
-
113
-
114
-
115
-
116
- // Training
117
- for (int i= 0 ; i< midiTraining. length; i++ ) {
118
- if (midiTraining[i] == pitch) {
119
- if (TrainingBtns [i]. getState()) {
120
- TrainingBtns [i]. setState(false );
121
- } else {
122
- TrainingBtns [i]. setState(true );
123
- }
124
- }
125
- }
126
- }
0 commit comments