Subversion Repositories svn.mios

Rev

Rev 303 | Rev 696 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 303 Rev 628
Line 34... Line 34...
34
    private static int lfoselect = 5;
34
    private static int lfoselect = 5;
35
    private static int combo = 6;
35
    private static int combo = 6;
36
   
36
37
    public static Vector createMSTR(Patch patch) {
37
    public static Vector createMSTR(Patch patch) {
38
        Vector leadControl = new Vector();     
38
        Vector leadControl = new Vector();
39
        leadControl.add(new SIDSysexParameterControl(button,null,patch,80,0,1,"Legato"));
39
        leadControl.add(new SIDSysexParameterControl(button, null, patch, 80,
-
 
40
                0, 1, "Legato"));
40
        leadControl.add(new SIDSysexParameterControl(button,null,patch,80,2,1,"Fingered Portamento"));
41
        leadControl.add(new SIDSysexParameterControl(button, null, patch, 80,
-
 
42
                2, 1, "Fingered Portamento"));
41
        leadControl.add(new SIDSysexParameterControl(button,null,patch,80,1,1,"Wavetable only"));
43
        leadControl.add(new SIDSysexParameterControl(button, null, patch, 80,
-
 
44
                1, 1, "Wavetable only"));
42
        leadControl.add(new SIDSysexParameterControl(rotary,null,patch,81,0,8,"Detune","Detune oscillators"));
45
        leadControl.add(new SIDSysexParameterControl(rotary, null, patch, 81,
-
 
46
                0, 8, "Detune", "Detune oscillators"));
43
        leadControl.add(new SIDSysexParameterControl(rotary,null,patch,83,0,8,"Phase Offset","Oscillators phase offset "));
47
        leadControl.add(new SIDSysexParameterControl(rotary, null, patch, 83,
-
 
48
                0, 8, "Phase Offset", "Oscillators phase offset "));
44
        return leadControl;
49
        return leadControl;
45
    }
50
    }
46
   
51
47
    public static Vector createLFO(Patch patch) {
52
    public static Vector createLFO(Patch patch) {
48
        Vector lfoControl = new Vector();
53
        Vector lfoControl = new Vector();
49
        // LFO
54
        // LFO
50
        for (int c = 0; c <6; c++) {
55
        for (int c = 0; c < 6; c++) {
51
            lfoControl.add(new SIDSysexParameterControl(button,null,patch,192+(5*c),0,1,"On/Off","Enable/disable LFO"));
56
            lfoControl.add(new SIDSysexParameterControl(button, null, patch,
-
 
57
                    192 + (5 * c), 0, 1, "On/Off", "Enable/disable LFO"));
52
            lfoControl.add(new SIDSysexParameterControl(button,null,patch,192+(5*c),2,1,"MIDI Sync","Global clock synchronisation"));
58
            lfoControl.add(new SIDSysexParameterControl(button, null, patch,
-
 
59
                    192 + (5 * c), 2, 1, "MIDI Sync",
-
 
60
                    "Global clock synchronisation"));
53
            lfoControl.add(new SIDSysexParameterControl(button,null,patch,192+(5*c),3,1,"Oneshot","Oneshot mode"));
61
            lfoControl.add(new SIDSysexParameterControl(button, null, patch,
-
 
62
                    192 + (5 * c), 3, 1, "Oneshot", "Oneshot mode"));
54
            lfoControl.add(new SIDSysexParameterControl(lfoselect,null,patch,192+(5*c),4,4,"Waveform","Select a waveform"));
63
            lfoControl.add(new SIDSysexParameterControl(lfoselect, null, patch,
-
 
64
                    192 + (5 * c), 4, 4, "Waveform", "Select a waveform"));
55
            lfoControl.add(new SIDSysexParameterControl(rotary,null,patch,193+(5*c),0,-8,"Depth"));
65
            lfoControl.add(new SIDSysexParameterControl(rotary, null, patch,
-
 
66
                    193 + (5 * c), 0, -8, "Depth"));
56
            lfoControl.add(new SIDSysexParameterControl(rotary,createRateStr(),patch,194+(5*c),0,8,"Rate"));
67
            lfoControl.add(new SIDSysexParameterControl(rotary,
-
 
68
                    createRateStr(), patch, 194 + (5 * c), 0, 8, "Rate"));
57
            lfoControl.add(new SIDSysexParameterControl(rotary,null,patch,195+(5*c),0,8,"Delay"));
69
            lfoControl.add(new SIDSysexParameterControl(rotary, null, patch,
-
 
70
                    195 + (5 * c), 0, 8, "Delay"));
58
            lfoControl.add(new SIDSysexParameterControl(rotary,null,patch,196+(5*c),0,8,"Phase"));
71
            lfoControl.add(new SIDSysexParameterControl(rotary, null, patch,
-
 
72
                    196 + (5 * c), 0, 8, "Phase"));
59
            lfoControl.add(new SIDSysexParameterControl(button,null,patch,321,(2+c),1,"Key Sync","Reset LFO at key press"));
73
            lfoControl.add(new SIDSysexParameterControl(button, null, patch,
-
 
74
                    321, (2 + c), 1, "Key Sync", "Reset LFO at key press"));
60
        }      
75
        }
61
        return lfoControl;
76
        return lfoControl;
62
    }
77
    }
63
   
78
64
    public static Vector createENV(Patch patch, int offset) {
79
    public static Vector createENV(Patch patch, int offset) {
65
        Vector envControl = new Vector();  
80
        Vector envControl = new Vector();
66
        // Envelope
81
        // Envelope
67
        envControl.add(new SIDSysexParameterControl(combo,SIDSysexInfo.loop,patch,224+offset,0,3,"Loop Begin","Envelope loop begin point"));
82
        envControl.add(new SIDSysexParameterControl(combo, SIDSysexInfo.loop,
-
 
83
                patch, 224 + offset, 0, 3, "Loop Begin",
-
 
84
                "Envelope loop begin point"));
68
        envControl.add(new SIDSysexParameterControl(combo,SIDSysexInfo.loop,patch,224+offset,4,3,"Loop End","Envelope loop end point"));
85
        envControl.add(new SIDSysexParameterControl(combo, SIDSysexInfo.loop,
-
 
86
                patch, 224 + offset, 4, 3, "Loop End",
-
 
87
                "Envelope loop end point"));
-
 
88
        envControl
69
        envControl.add(new SIDSysexParameterControl(button,null,patch,224+offset,7,1,"MIDI Sync","Global clock synchronisation"));
89
                .add(new SIDSysexParameterControl(button, null, patch,
-
 
90
                        224 + offset, 7, 1, "MIDI Sync",
-
 
91
                        "Global clock synchronisation"));
70
        envControl.add(new SIDSysexParameterControl(rotary,null,patch,225+offset,0,-8,"Depth"));
92
        envControl.add(new SIDSysexParameterControl(rotary, null, patch,
-
 
93
                225 + offset, 0, -8, "Depth"));
71
        envControl.add(new SIDSysexParameterControl(rotary,null,patch,226+offset,0,8,"Delay"));
94
        envControl.add(new SIDSysexParameterControl(rotary, null, patch,
-
 
95
                226 + offset, 0, 8, "Delay"));
72
        envControl.add(new SIDSysexParameterControl(rotary,null,patch,227+offset,0,8,"Attack1","Attack1 Rate"));
96
        envControl.add(new SIDSysexParameterControl(rotary, null, patch,
-
 
97
                227 + offset, 0, 8, "Attack1", "Attack1 Rate"));
73
        envControl.add(new SIDSysexParameterControl(slider,null,patch,228+offset,0,8,"Attack Lvl","Attack Level"));
98
        envControl.add(new SIDSysexParameterControl(slider, null, patch,
-
 
99
                228 + offset, 0, 8, "Attack Lvl", "Attack Level"));
74
        envControl.add(new SIDSysexParameterControl(rotary,null,patch,229+offset,0,8,"Attack2","Attack2 Rate"));
100
        envControl.add(new SIDSysexParameterControl(rotary, null, patch,
-
 
101
                229 + offset, 0, 8, "Attack2", "Attack2 Rate"));
75
        envControl.add(new SIDSysexParameterControl(rotary,null,patch,230+offset,0,8,"Decay1","Decay1 Rate"));
102
        envControl.add(new SIDSysexParameterControl(rotary, null, patch,
-
 
103
                230 + offset, 0, 8, "Decay1", "Decay1 Rate"));
76
        envControl.add(new SIDSysexParameterControl(slider,null,patch,231+offset,0,8,"Decay Lvl","Decay Level"));
104
        envControl.add(new SIDSysexParameterControl(slider, null, patch,
-
 
105
                231 + offset, 0, 8, "Decay Lvl", "Decay Level"));
77
        envControl.add(new SIDSysexParameterControl(rotary,null,patch,232+offset,0,8,"Decay2","Decay2 Rate"));
106
        envControl.add(new SIDSysexParameterControl(rotary, null, patch,
-
 
107
                232 + offset, 0, 8, "Decay2", "Decay2 Rate"));
78
        envControl.add(new SIDSysexParameterControl(slider,null,patch,233+offset,0,8,"Sustain Lvl","Sustain Level"));
108
        envControl.add(new SIDSysexParameterControl(slider, null, patch,
-
 
109
                233 + offset, 0, 8, "Sustain Lvl", "Sustain Level"));
79
        envControl.add(new SIDSysexParameterControl(rotary,null,patch,234+offset,0,8,"Release1","Release1 Rate"));
110
        envControl.add(new SIDSysexParameterControl(rotary, null, patch,
-
 
111
                234 + offset, 0, 8, "Release1", "Release1 Rate"));
80
        envControl.add(new SIDSysexParameterControl(slider,null,patch,235+offset,0,8,"Release Lvl","Release Level"));
112
        envControl.add(new SIDSysexParameterControl(slider, null, patch,
-
 
113
                235 + offset, 0, 8, "Release Lvl", "Release Level"));
81
        envControl.add(new SIDSysexParameterControl(rotary,null,patch,236+offset,0,8,"Release2","Release2 Rate"));
114
        envControl.add(new SIDSysexParameterControl(rotary, null, patch,
-
 
115
                236 + offset, 0, 8, "Release2", "Release2 Rate"));
82
        envControl.add(new SIDSysexParameterControl(rotary,null,patch,237+offset,0,-8,"Att.Curve","Attack Curve"));
116
        envControl.add(new SIDSysexParameterControl(rotary, null, patch,
-
 
117
                237 + offset, 0, -8, "Att.Curve", "Attack Curve"));
83
        envControl.add(new SIDSysexParameterControl(rotary,null,patch,238+offset,0,-8,"Dec.Curve","Decay Curve"));
118
        envControl.add(new SIDSysexParameterControl(rotary, null, patch,
-
 
119
                238 + offset, 0, -8, "Dec.Curve", "Decay Curve"));
84
        envControl.add(new SIDSysexParameterControl(rotary,null,patch,239+offset,0,-8,"Rel.Curve","Release Curve"));
120
        envControl.add(new SIDSysexParameterControl(rotary, null, patch,
-
 
121
                239 + offset, 0, -8, "Rel.Curve", "Release Curve"));
85
        return envControl;
122
        return envControl;
86
    }
123
    }
87
   
124
88
    public static Vector createMOD(Patch patch) {
125
    public static Vector createMOD(Patch patch) {
89
        Vector modControl = new Vector();          
126
        Vector modControl = new Vector();
90
        // Modulation paths
127
        // Modulation paths
91
        for (int c = 0; c <8; c++) {
128
        for (int c = 0; c < 8; c++) {
92
            modControl.add(new SIDSysexParameterControl(combo,createSrcStr(),patch,256+(8*c),0,8,"Source 1"));
129
            modControl.add(new SIDSysexParameterControl(combo, createSrcStr(),
-
 
130
                    patch, 256 + (8 * c), 0, 8, "Source 1"));
93
            modControl.add(new SIDSysexParameterControl(combo,createSrcStr(),patch,257+(8*c),0,8,"Source 2"));
131
            modControl.add(new SIDSysexParameterControl(combo, createSrcStr(),
-
 
132
                    patch, 257 + (8 * c), 0, 8, "Source 2"));
94
            modControl.add(new SIDSysexParameterControl(combo,SIDSysexInfo.operatorNames,patch,258+(8*c),0,4,"Operator"));
133
            modControl.add(new SIDSysexParameterControl(combo,
-
 
134
                    SIDSysexInfo.operatorNames, patch, 258 + (8 * c), 0, 4,
-
 
135
                    "Operator"));
95
            modControl.add(new SIDSysexParameterControl(button,null,patch,258+(8*c),6,1,"Invert 1/L","Invert target 1/L"));
136
            modControl.add(new SIDSysexParameterControl(button, null, patch,
-
 
137
                    258 + (8 * c), 6, 1, "Invert 1/L", "Invert target 1/L"));
96
            modControl.add(new SIDSysexParameterControl(button,null,patch,258+(8*c),7,1,"Invert 2/R","Invert target 2/R"));
138
            modControl.add(new SIDSysexParameterControl(button, null, patch,
-
 
139
                    258 + (8 * c), 7, 1, "Invert 2/R", "Invert target 2/R"));
97
            modControl.add(new SIDSysexParameterControl(rotary,null,patch,259+(8*c),0,-8,"Depth"));
140
            modControl.add(new SIDSysexParameterControl(rotary, null, patch,
-
 
141
                    259 + (8 * c), 0, -8, "Depth"));
98
            modControl.add(new SIDSysexParameterControl(combo,SIDSysexInfo.tgtNames,patch,262+(8*c),0,8,"Target 1"));
142
            modControl.add(new SIDSysexParameterControl(combo,
-
 
143
                    SIDSysexInfo.tgtNames, patch, 262 + (8 * c), 0, 8,
-
 
144
                    "Target 1"));
99
            modControl.add(new SIDSysexParameterControl(combo,SIDSysexInfo.tgtNames,patch,263+(8*c),0,8,"Target 2"));
145
            modControl.add(new SIDSysexParameterControl(combo,
-
 
146
                    SIDSysexInfo.tgtNames, patch, 263 + (8 * c), 0, 8,
-
 
147
                    "Target 2"));
100
            modControl.add(new SIDSysexParameterControl(button,null,patch,260+(8*c),0,1,"V1 Pitch","Direct assignment to pitch of left OSC1"));
148
            modControl.add(new SIDSysexParameterControl(button, null, patch,
-
 
149
                    260 + (8 * c), 0, 1, "V1 Pitch",
-
 
150
                    "Direct assignment to pitch of left OSC1"));
101
            modControl.add(new SIDSysexParameterControl(button,null,patch,260+(8*c),1,1,"V2 Pitch","Direct assignment to pitch of left OSC2"));
151
            modControl.add(new SIDSysexParameterControl(button, null, patch,
-
 
152
                    260 + (8 * c), 1, 1, "V2 Pitch",
-
 
153
                    "Direct assignment to pitch of left OSC2"));
102
            modControl.add(new SIDSysexParameterControl(button,null,patch,260+(8*c),2,1,"V3 Pitch","Direct assignment to pitch of left OSC3"));
154
            modControl.add(new SIDSysexParameterControl(button, null, patch,
-
 
155
                    260 + (8 * c), 2, 1, "V3 Pitch",
-
 
156
                    "Direct assignment to pitch of left OSC3"));
103
            modControl.add(new SIDSysexParameterControl(button,null,patch,260+(8*c),3,1,"V1 PWM","Direct assignment to pulse width of left OSC1"));
157
            modControl.add(new SIDSysexParameterControl(button, null, patch,
-
 
158
                    260 + (8 * c), 3, 1, "V1 PWM",
-
 
159
                    "Direct assignment to pulse width of left OSC1"));
104
            modControl.add(new SIDSysexParameterControl(button,null,patch,260+(8*c),4,1,"V2 PWM","Direct assignment to pulse width of left OSC2"));
160
            modControl.add(new SIDSysexParameterControl(button, null, patch,
-
 
161
                    260 + (8 * c), 4, 1, "V2 PWM",
-
 
162
                    "Direct assignment to pulse width of left OSC2"));
105
            modControl.add(new SIDSysexParameterControl(button,null,patch,260+(8*c),5,1,"V3 PWM","Direct assignment to pulse width of left OSC3"));
163
            modControl.add(new SIDSysexParameterControl(button, null, patch,
-
 
164
                    260 + (8 * c), 5, 1, "V3 PWM",
-
 
165
                    "Direct assignment to pulse width of left OSC3"));
106
            modControl.add(new SIDSysexParameterControl(button,null,patch,260+(8*c),6,1,"Cutoff L","Direct assignment to filter cutoff of left SID"));
166
            modControl.add(new SIDSysexParameterControl(button, null, patch,
-
 
167
                    260 + (8 * c), 6, 1, "Cutoff L",
-
 
168
                    "Direct assignment to filter cutoff of left SID"));
107
            modControl.add(new SIDSysexParameterControl(button,null,patch,260+(8*c),7,1,"Volume L","Direct assignment to volume of left SID"));
169
            modControl.add(new SIDSysexParameterControl(button, null, patch,
-
 
170
                    260 + (8 * c), 7, 1, "Volume L",
-
 
171
                    "Direct assignment to volume of left SID"));
108
            modControl.add(new SIDSysexParameterControl(button,null,patch,261+(8*c),0,1,"V4 Pitch","Direct assignment to pitch of right OSC1"));
172
            modControl.add(new SIDSysexParameterControl(button, null, patch,
-
 
173
                    261 + (8 * c), 0, 1, "V4 Pitch",
-
 
174
                    "Direct assignment to pitch of right OSC1"));
109
            modControl.add(new SIDSysexParameterControl(button,null,patch,261+(8*c),1,1,"V5 Pitch","Direct assignment to pitch of right OSC2"));
175
            modControl.add(new SIDSysexParameterControl(button, null, patch,
-
 
176
                    261 + (8 * c), 1, 1, "V5 Pitch",
-
 
177
                    "Direct assignment to pitch of right OSC2"));
110
            modControl.add(new SIDSysexParameterControl(button,null,patch,261+(8*c),2,1,"V6 Pitch","Direct assignment to pitch of right OSC3"));
178
            modControl.add(new SIDSysexParameterControl(button, null, patch,
-
 
179
                    261 + (8 * c), 2, 1, "V6 Pitch",
-
 
180
                    "Direct assignment to pitch of right OSC3"));
111
            modControl.add(new SIDSysexParameterControl(button,null,patch,261+(8*c),3,1,"V4 PW","Direct assignment to pulse width of right OSC1"));
181
            modControl.add(new SIDSysexParameterControl(button, null, patch,
-
 
182
                    261 + (8 * c), 3, 1, "V4 PW",
-
 
183
                    "Direct assignment to pulse width of right OSC1"));
112
            modControl.add(new SIDSysexParameterControl(button,null,patch,261+(8*c),4,1,"V5 PW","Direct assignment to pulse width of right OSC2"));
184
            modControl.add(new SIDSysexParameterControl(button, null, patch,
-
 
185
                    261 + (8 * c), 4, 1, "V5 PW",
-
 
186
                    "Direct assignment to pulse width of right OSC2"));
113
            modControl.add(new SIDSysexParameterControl(button,null,patch,261+(8*c),5,1,"V6 PW","Direct assignment to pulse width of right OSC3"));
187
            modControl.add(new SIDSysexParameterControl(button, null, patch,
-
 
188
                    261 + (8 * c), 5, 1, "V6 PW",
-
 
189
                    "Direct assignment to pulse width of right OSC3"));
114
            modControl.add(new SIDSysexParameterControl(button,null,patch,261+(8*c),6,1,"Cutoff R","Direct assignment to filter cutoff of right SID"));
190
            modControl.add(new SIDSysexParameterControl(button, null, patch,
-
 
191
                    261 + (8 * c), 6, 1, "Cutoff R",
-
 
192
                    "Direct assignment to filter cutoff of right SID"));
115
            modControl.add(new SIDSysexParameterControl(button,null,patch,261+(8*c),7,1,"Volume R","Direct assignment to volume of right SID"));
193
            modControl.add(new SIDSysexParameterControl(button, null, patch,
-
 
194
                    261 + (8 * c), 7, 1, "Volume R",
-
 
195
                    "Direct assignment to volume of right SID"));
116
        }
196
        }
117
        return modControl;
197
        return modControl;
118
    }
198
    }
119
   
199
120
    public static Vector createTRIG(Patch patch) {
200
    public static Vector createTRIG(Patch patch) {
121
        Vector trigControl = new Vector(); 
201
        Vector trigControl = new Vector();
122
        // Trigger matrix
202
        // Trigger matrix
123
        for (int c = 0; c <14; c++) {
203
        for (int c = 0; c < 14; c++) {
124
            trigControl.add(new SIDSysexParameterControl(simplebutton,null,patch,320+(3*c),0,1,"OSC1 Left Ch"));
204
            trigControl.add(new SIDSysexParameterControl(simplebutton, null,
-
 
205
                    patch, 320 + (3 * c), 0, 1, "OSC1 Left Ch"));
125
            trigControl.add(new SIDSysexParameterControl(simplebutton,null,patch,320+(3*c),1,1,"OSC2 Left Ch"));
206
            trigControl.add(new SIDSysexParameterControl(simplebutton, null,
-
 
207
                    patch, 320 + (3 * c), 1, 1, "OSC2 Left Ch"));
126
            trigControl.add(new SIDSysexParameterControl(simplebutton,null,patch,320+(3*c),2,1,"OSC3 Left Ch"));
208
            trigControl.add(new SIDSysexParameterControl(simplebutton, null,
-
 
209
                    patch, 320 + (3 * c), 2, 1, "OSC3 Left Ch"));
127
            trigControl.add(new SIDSysexParameterControl(simplebutton,null,patch,320+(3*c),3,1,"OSC1 Right Ch"));
210
            trigControl.add(new SIDSysexParameterControl(simplebutton, null,
-
 
211
                    patch, 320 + (3 * c), 3, 1, "OSC1 Right Ch"));
128
            trigControl.add(new SIDSysexParameterControl(simplebutton,null,patch,320+(3*c),4,1,"OSC2 Right Ch"));
212
            trigControl.add(new SIDSysexParameterControl(simplebutton, null,
-
 
213
                    patch, 320 + (3 * c), 4, 1, "OSC2 Right Ch"));
129
            trigControl.add(new SIDSysexParameterControl(simplebutton,null,patch,320+(3*c),5,1,"OSC3 Right Ch"));
214
            trigControl.add(new SIDSysexParameterControl(simplebutton, null,
-
 
215
                    patch, 320 + (3 * c), 5, 1, "OSC3 Right Ch"));
130
            trigControl.add(new SIDSysexParameterControl(simplebutton,null,patch,320+(3*c),6,1,"ENV1 Attack"));
216
            trigControl.add(new SIDSysexParameterControl(simplebutton, null,
-
 
217
                    patch, 320 + (3 * c), 6, 1, "ENV1 Attack"));
131
            trigControl.add(new SIDSysexParameterControl(simplebutton,null,patch,320+(3*c),7,1,"ENV2 Attack"));
218
            trigControl.add(new SIDSysexParameterControl(simplebutton, null,
-
 
219
                    patch, 320 + (3 * c), 7, 1, "ENV2 Attack"));
132
            trigControl.add(new SIDSysexParameterControl(simplebutton,null,patch,321+(3*c),0,1,"ENV1 Release"));
220
            trigControl.add(new SIDSysexParameterControl(simplebutton, null,
-
 
221
                    patch, 321 + (3 * c), 0, 1, "ENV1 Release"));
133
            trigControl.add(new SIDSysexParameterControl(simplebutton,null,patch,321+(3*c),1,1,"ENV2 Release"));
222
            trigControl.add(new SIDSysexParameterControl(simplebutton, null,
-
 
223
                    patch, 321 + (3 * c), 1, 1, "ENV2 Release"));
134
            trigControl.add(new SIDSysexParameterControl(simplebutton,null,patch,321+(3*c),2,1,"LFO1 Reset"));
224
            trigControl.add(new SIDSysexParameterControl(simplebutton, null,
-
 
225
                    patch, 321 + (3 * c), 2, 1, "LFO1 Reset"));
135
            trigControl.add(new SIDSysexParameterControl(simplebutton,null,patch,321+(3*c),3,1,"LFO2 Reset"));
226
            trigControl.add(new SIDSysexParameterControl(simplebutton, null,
-
 
227
                    patch, 321 + (3 * c), 3, 1, "LFO2 Reset"));
136
            trigControl.add(new SIDSysexParameterControl(simplebutton,null,patch,321+(3*c),4,1,"LFO3 Reset"));
228
            trigControl.add(new SIDSysexParameterControl(simplebutton, null,
-
 
229
                    patch, 321 + (3 * c), 4, 1, "LFO3 Reset"));
137
            trigControl.add(new SIDSysexParameterControl(simplebutton,null,patch,321+(3*c),5,1,"LFO4 Reset"));
230
            trigControl.add(new SIDSysexParameterControl(simplebutton, null,
-
 
231
                    patch, 321 + (3 * c), 5, 1, "LFO4 Reset"));
138
            trigControl.add(new SIDSysexParameterControl(simplebutton,null,patch,321+(3*c),6,1,"LFO5 Reset"));
232
            trigControl.add(new SIDSysexParameterControl(simplebutton, null,
-
 
233
                    patch, 321 + (3 * c), 6, 1, "LFO5 Reset"));
139
            trigControl.add(new SIDSysexParameterControl(simplebutton,null,patch,321+(3*c),7,1,"LFO6 Reset"));
234
            trigControl.add(new SIDSysexParameterControl(simplebutton, null,
-
 
235
                    patch, 321 + (3 * c), 7, 1, "LFO6 Reset"));
140
            trigControl.add(new SIDSysexParameterControl(simplebutton,null,patch,322+(3*c),0,1,"WT1 Reset"));
236
            trigControl.add(new SIDSysexParameterControl(simplebutton, null,
-
 
237
                    patch, 322 + (3 * c), 0, 1, "WT1 Reset"));
141
            trigControl.add(new SIDSysexParameterControl(simplebutton,null,patch,322+(3*c),1,1,"WT2 Reset"));
238
            trigControl.add(new SIDSysexParameterControl(simplebutton, null,
-
 
239
                    patch, 322 + (3 * c), 1, 1, "WT2 Reset"));
142
            trigControl.add(new SIDSysexParameterControl(simplebutton,null,patch,322+(3*c),2,1,"WT3 Reset"));
240
            trigControl.add(new SIDSysexParameterControl(simplebutton, null,
-
 
241
                    patch, 322 + (3 * c), 2, 1, "WT3 Reset"));
143
            trigControl.add(new SIDSysexParameterControl(simplebutton,null,patch,322+(3*c),3,1,"WT4 Reset"));
242
            trigControl.add(new SIDSysexParameterControl(simplebutton, null,
-
 
243
                    patch, 322 + (3 * c), 3, 1, "WT4 Reset"));
144
            trigControl.add(new SIDSysexParameterControl(simplebutton,null,patch,322+(3*c),4,1,"WT1 Step"));
244
            trigControl.add(new SIDSysexParameterControl(simplebutton, null,
-
 
245
                    patch, 322 + (3 * c), 4, 1, "WT1 Step"));
145
            trigControl.add(new SIDSysexParameterControl(simplebutton,null,patch,322+(3*c),5,1,"WT2 Step"));
246
            trigControl.add(new SIDSysexParameterControl(simplebutton, null,
-
 
247
                    patch, 322 + (3 * c), 5, 1, "WT2 Step"));
146
            trigControl.add(new SIDSysexParameterControl(simplebutton,null,patch,322+(3*c),6,1,"WT3 Step"));
248
            trigControl.add(new SIDSysexParameterControl(simplebutton, null,
-
 
249
                    patch, 322 + (3 * c), 6, 1, "WT3 Step"));
147
            trigControl.add(new SIDSysexParameterControl(simplebutton,null,patch,322+(3*c),7,1,"WT4 Step"));
250
            trigControl.add(new SIDSysexParameterControl(simplebutton, null,
-
 
251
                    patch, 322 + (3 * c), 7, 1, "WT4 Step"));
148
        }
252
        }
149
        return trigControl;
253
        return trigControl;
150
    }
254
    }
151
   
255
152
    public static Vector createWT(Patch patch) {
256
    public static Vector createWT(Patch patch) {
153
        Vector wtControl = new Vector();       
257
        Vector wtControl = new Vector();
154
        // Wavetable sequencer
258
        // Wavetable sequencer
155
        for (int c = 0; c <4; c++) {
259
        for (int c = 0; c < 4; c++) {
156
            wtControl.add(new SIDSysexParameterControl(rotary,null,patch,364+(5*c),0,6,"Clock Divider","Clock divider (sets tempo)"));
260
            wtControl.add(new SIDSysexParameterControl(rotary, null, patch,
-
 
261
                    364 + (5 * c), 0, 6, "Clock Divider",
-
 
262
                    "Clock divider (sets tempo)"));
157
            wtControl.add(new SIDSysexParameterControl(button,null,patch,364+(5*c),6,1,"To Left Ch","Parameter forwarded to left channel"));
263
            wtControl.add(new SIDSysexParameterControl(button, null, patch,
-
 
264
                    364 + (5 * c), 6, 1, "To Left Ch",
-
 
265
                    "Parameter forwarded to left channel"));
158
            wtControl.add(new SIDSysexParameterControl(button,null,patch,364+(5*c),7,1,"To Right Ch","Parameter forwarded to right channel"));
266
            wtControl.add(new SIDSysexParameterControl(button, null, patch,
-
 
267
                    364 + (5 * c), 7, 1, "To Right Ch",
-
 
268
                    "Parameter forwarded to right channel"));
159
            wtControl.add(new SIDSysexParameterControl(combo,SIDSysexInfo.leadParams,patch,365+(5*c),0,8,"Assign","Parameter assignment"));
269
            wtControl.add(new SIDSysexParameterControl(combo,
-
 
270
                    SIDSysexInfo.leadParams, patch, 365 + (5 * c), 0, 8,
-
 
271
                    "Assign", "Parameter assignment"));
160
            wtControl.add(new SIDSysexParameterControl(rotary,null,patch,366+(5*c),0,7,"Start Pos","Start position in wavetable"));
272
            wtControl.add(new SIDSysexParameterControl(rotary, null, patch,
-
 
273
                    366 + (5 * c), 0, 7, "Start Pos",
-
 
274
                    "Start position in wavetable"));
161
            wtControl.add(new SIDSysexParameterControl(button,null,patch,366+(5*c),7,1,"Pos Ctrl by MP","Position controlled by modulation path"));
275
            wtControl.add(new SIDSysexParameterControl(button, null, patch,
-
 
276
                    366 + (5 * c), 7, 1, "Pos Ctrl by MP",
-
 
277
                    "Position controlled by modulation path"));
-
 
278
            wtControl
162
            wtControl.add(new SIDSysexParameterControl(rotary,null,patch,367+(5*c),0,7,"End Pos","End position in wavetable"));
279
                    .add(new SIDSysexParameterControl(rotary, null, patch,
-
 
280
                            367 + (5 * c), 0, 7, "End Pos",
-
 
281
                            "End position in wavetable"));
163
            wtControl.add(new SIDSysexParameterControl(rotary,null,patch,368+(5*c),0,7,"Loop Pos","Loop position in wavetable"));
282
            wtControl.add(new SIDSysexParameterControl(rotary, null, patch,
-
 
283
                    368 + (5 * c), 0, 7, "Loop Pos",
-
 
284
                    "Loop position in wavetable"));
164
            wtControl.add(new SIDSysexParameterControl(button,null,patch,368+(5*c),7,1,"Oneshot"));
285
            wtControl.add(new SIDSysexParameterControl(button, null, patch,
-
 
286
                    368 + (5 * c), 7, 1, "Oneshot"));
165
        }      
287
        }
166
        // Wavetable data
288
        // Wavetable data
167
        for (int c = 0; c <128; c++) {
289
        for (int c = 0; c < 128; c++) {
168
            wtControl.add(new SIDSysexParameterControl(slider,null,patch,384+c,0,8,Integer.toString(c)));
290
            wtControl.add(new SIDSysexParameterControl(slider, null, patch,
-
 
291
                    384 + c, 0, 8, Integer.toString(c)));
169
        }              
292
        }
170
        return wtControl;
293
        return wtControl;
171
    }
294
    }
172
   
295
173
    private static String[] createRateStr() {
296
    private static String[] createRateStr() {
174
        String[] rateStr = new String[256];    
297
        String[] rateStr = new String[256];
175
        for (int c = 0; c <rateStr.length; c++) {
298
        for (int c = 0; c < rateStr.length; c++) {
176
           
299
177
            if (c < 245) {
300
            if (c < 245) {
178
                rateStr[c] = Integer.toString(c);
301
                rateStr[c] = Integer.toString(c);
179
            }
-
 
180
            else {
302
            } else {
181
                rateStr[c] = SIDSysexInfo.rates[c-245];
303
                rateStr[c] = SIDSysexInfo.rates[c - 245];
182
            }
304
            }
183
        }
305
        }
184
        return rateStr;
306
        return rateStr;
185
    }
307
    }
Line 188... Line 310...
188
        String[] srcStr = new String[256];
310
        String[] srcStr = new String[256];
189
        String [] srcNames = SIDSysexInfo.srcNames;
311
        String[] srcNames = SIDSysexInfo.srcNames;
190
        for (int c = 0; c <srcStr.length; c++) {
312
        for (int c = 0; c < srcStr.length; c++) {
191
            if (c < srcNames.length) {
313
            if (c < srcNames.length) {
192
                srcStr[c] = srcNames[c];
314
                srcStr[c] = srcNames[c];
193
            }
-
 
194
            else if (c > 127) {
315
            } else if (c > 127) {
195
                srcStr[c] = Integer.toString(c-128);
316
                srcStr[c] = Integer.toString(c - 128);
196
            }
-
 
197
            else {
317
            } else {
198
                srcStr[c] = "";
318
                srcStr[c] = "";
199
            }
319
            }
200
        }
320
        }
201
        return srcStr;
321
        return srcStr;
202
    }
322
    }