Subversion Repositories svn.mios

Rev

Rev 194 | Rev 360 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
44 tk 1
; $Id: setup_tk.asm 285 2008-04-23 20:31:07Z tk $
194 tk 2
    LIST R=DEC
44 tk 3
;
4
; Individual Setup File for TK's MIDIbox SID
5
;
6
 
7
    ;; BankStick Chip Select Address for "ensembles"
8
    ;; -1: only one ensemble available, stored in internal EEPROM
9
    ;; 0..7: CS# configuration of BankStick (Pin 1, 2 and 3)
10
    ;; reminder for default value 7: Pin 1, 2 and 3 have connected to +5V
11
    ;; a 32k BankStick 24LC256 is sufficient for 128 storable ensembles
12
    ;; a 64k BankStick will also work, but doesn't increase the number of available ensembles
13
#define DEFAULT_ENS_BS_CS   7
14
 
15
    ;; select default filter calibration value
16
    ;; expecting 12bit values (0..4095)
17
    ;; will be overwritten by ensemble setting - this is only used as default value for BankStick initialisation!
18
#define DEFAULT_FILTER_CALI_MIN 0
19
#define DEFAULT_FILTER_CALI_MAX 1536
20
 
21
    ;; number of visible menu items on LCD
22
    ;; use:  4 for 2x16 displays
23
    ;;       5 for 2x20 displays
24
    ;;      10 for 2x40 displays
25
#define CS_MENU_DISPLAYED_ITEMS 5
26
    ;; NOTE: if CS_MENU_DISPLAYED_ITEMS > 5, you have to adapt the DIN settings
27
    ;; in cs_menu_io_tables.inc
28
 
29
    ;; Inc/Dec buttons or rotary encoder of data entry?
30
    ;; use:  0 if rotary encoder should be used 
31
    ;;         (pins of encoder are defined in mios_tables.inc)
32
    ;;       1 if buttons should be used instead
33
#define CS_MENU_USE_INCDEC_BUTTONS 0
34
 
35
    ;; 0: J5 has no function at all (analog inputs don't need to be connected to ground)
36
    ;; 1: J5 used for analog inputs - A0..A4 control Knob#1..#5, A5..A7 are not used at all
37
    ;; 2: J5 used as digital output (pins can be added in cs_menu_io_tables.inc as "shift register #0")
136 tk 38
    ;; 3: J5 used as digital output for external switches (replacement for DEFAULT_EXT_SWITCH_DOUT, AOUT_INTERFACE_TYPE must be != 0)
44 tk 39
#define DEFAULT_J5_FUNCTION 3
40
 
41
    ;; DOUT/DIN shift register matrix:
42
    ;; define the DOUT shift register (1-16) to which the cathodes are connected (common line driver)
43
    ;; 0 disables this shift register (doesn't make much sense)
44
#define DEFAULT_SRM_CATHODES        1
45
 
46
    ;; define the DOUT shift register (1-16) to which the anodes of the modulation matrix are connected
47
    ;; 0 disables this shift register
48
#define DEFAULT_SRM_MODMATRIX_DOUT  3
49
 
50
    ;; optional LED/Button Matrix (used by "Wilba's Board" to reduce number of shift registers)
51
    ;; define the DOUT shift register (1-16) to which the anodes of the LED matrix are connected
52
    ;; 0 disables the LED matrix function - LEDs have to be connected to individual DOUT pins
53
#define DEFAULT_SRM_LEDS_DOUT       2
54
 
55
    ;; define the DIN shift register (1-16) to which the button matrix is connected
56
    ;; 0 disables the button matrix function - Buttons have to be connected to individual DIN pins
57
#define DEFAULT_SRM_BUTTONS_DIN     5
58
 
59
    ;; define the number of shift registers (1-16) in the SRIO chain (DIN/DOUT shift registers)
60
    ;; use the number of the longest chain - e.g. 4 DOUT registers, 10 DIN registers: use 10
61
    ;; 0 disables the SRIO chain
62
#define DEFAULT_SRIO_NUMBER     10
63
 
64
 
136 tk 65
    ;; define the AOUT interface which is used here:
66
    ;;   1: one MBHP_AOUT module
67
    ;;   2: up to 4 (chained) MBHP_AOUT_LC modules
68
    ;;   3: one MBHP_AOUT_NG module
69
    ;; all other values invalid!
70
#define AOUT_INTERFACE_TYPE 3
71
 
72
    ;; only relevant if one or more AOUT_LC modules are used:
73
    ;; define the resolution configuration here
74
    ;;   0: first channel 12bit, second channel 4bit
75
    ;;   1: first channel 8bit, second channel 8bit
285 tk 76
    ;;   2: combines M1,M2 and/or M3/M4: first channel 12bit, second channel 12bit, third channel 8bit, fourth channel ignored!
136 tk 77
    ;; all other values invalid!
78
#define AOUT_LC_RESOLUTION_OPTION_M1 0
79
#define AOUT_LC_RESOLUTION_OPTION_M2 0
80
#define AOUT_LC_RESOLUTION_OPTION_M3 0
81
#define AOUT_LC_RESOLUTION_OPTION_M4 0
82
 
83
 
44 tk 84
    ;; the 8 external switches can be routed to a DOUT shift register:
85
    ;; 0: not used
86
    ;; 1-16: DOUT SR#1..#16
87
#define DEFAULT_EXT_SWITCH_DOUT 0
88
 
89
    ;; 0: SwinSID extensions disabled
90
    ;; 1: SwinSID extensions enabled
91
#define ENABLE_SWINSID 1
92
 
93
    ;; assign the AOUT channels for the F2A (Filter to AOUT function) here
94
    ;; we have 4 assignments for CutOff Left/Right and Resonance Left/Right
95
    ;; 0 disables an assignment
96
#define DEFAULT_F2A_CUTOFF_L_AOUT   1
97
#define DEFAULT_F2A_RESONANCE_L_AOUT    2
98
#define DEFAULT_F2A_CUTOFF_R_AOUT   3
99
#define DEFAULT_F2A_RESONANCE_R_AOUT    4
100
 
101
    ;; assign the AOUT channel for the V2A (Volume to AOUT function) here
102
    ;; we have two assignments for the left/right SID channel
103
    ;; 0 disables an assignment
104
#define DEFAULT_V2A_VOLUME_L_AOUT   5
105
#define DEFAULT_V2A_VOLUME_R_AOUT   6
106
 
107
    ;; assign the AOUT channel for the P2A (Pulsewidth to AOUT function) here
108
    ;; we have six assignments for all oscillators (left/right channel)
109
    ;; note that there is a channel conflict between other *2A functions - adaption for your setup required!
110
    ;; 0 disables an assignment
111
#define DEFAULT_P2A_OSC1_L_AOUT     5
112
#define DEFAULT_P2A_OSC2_L_AOUT     0
113
#define DEFAULT_P2A_OSC3_L_AOUT     0
114
#define DEFAULT_P2A_OSC1_R_AOUT     6
115
#define DEFAULT_P2A_OSC2_R_AOUT     0
116
#define DEFAULT_P2A_OSC3_R_AOUT     0
117
 
118
    ;; assign the AOUT channel for the K2A (Key to AOUT function) here
119
    ;; we have six assignments for all oscillators (left/right channel)
120
    ;; note that there is a channel conflict between other *2A functions - adaption for your setup required!
121
    ;; 0 disables an assignment
122
#define DEFAULT_K2A_OSC1_L_AOUT     7
123
#define DEFAULT_K2A_OSC2_L_AOUT     0
124
#define DEFAULT_K2A_OSC3_L_AOUT     0
125
#define DEFAULT_K2A_OSC1_R_AOUT     8
126
#define DEFAULT_K2A_OSC2_R_AOUT     0
127
#define DEFAULT_K2A_OSC3_R_AOUT     0
128
 
129
    ;; assign the AOUT channel for the O2A (Oscillator Frequency to AOUT function) here
130
    ;; we have six assignments for all oscillators (left/right channel)
131
    ;; note that there is a channel conflict between other *2A functions - adaption for your setup required!
132
    ;; note also, that with O2A enabled, the connected SIDs won't output the correct frequencies anymore
133
    ;; 0 disables an assignment
134
#define DEFAULT_O2A_OSC1_L_AOUT     7
135
#define DEFAULT_O2A_OSC2_L_AOUT     0
136
#define DEFAULT_O2A_OSC3_L_AOUT     0
137
#define DEFAULT_O2A_OSC1_R_AOUT     8
138
#define DEFAULT_O2A_OSC2_R_AOUT     0
139
#define DEFAULT_O2A_OSC3_R_AOUT     0
140
 
141
    ;; gate/slide/accent of all 6 oscillators can be forwarded to the 8 digital outputs at J5
142
    ;; note that this overlays the switch assignments of the patch structure
143
    ;; DEFAULT_J5_FUNCTION should be set to 3 if you are plannung to use this function.
144
    ;; possible values: 0..8 - 0 disables an assignment
145
 
146
    ;; (gate supported by all engines)
147
#define DEFAULT_GATE_OSC1_L_OUT     1
148
#define DEFAULT_GATE_OSC2_L_OUT     0
149
#define DEFAULT_GATE_OSC3_L_OUT     0
150
#define DEFAULT_GATE_OSC1_R_OUT     2
151
#define DEFAULT_GATE_OSC2_R_OUT     0
152
#define DEFAULT_GATE_OSC3_R_OUT     0
153
 
154
    ;; (slide flag currently only supported by bassline engine)
155
#define DEFAULT_SLIDE_OSC1_L_OUT    0
156
#define DEFAULT_SLIDE_OSC2_L_OUT    0
157
#define DEFAULT_SLIDE_OSC3_L_OUT    0
158
#define DEFAULT_SLIDE_OSC1_R_OUT    0
159
#define DEFAULT_SLIDE_OSC2_R_OUT    0
160
#define DEFAULT_SLIDE_OSC3_R_OUT    0
161
 
162
    ;; (accent flag currently only supported by bassline and drum engine)
163
#define DEFAULT_ACCENT_OSC1_L_OUT   0
164
#define DEFAULT_ACCENT_OSC2_L_OUT   0
165
#define DEFAULT_ACCENT_OSC3_L_OUT   0
166
#define DEFAULT_ACCENT_OSC1_R_OUT   0
167
#define DEFAULT_ACCENT_OSC2_R_OUT   0
168
#define DEFAULT_ACCENT_OSC3_R_OUT   0
169
 
170
 
171
    ;; sets the default display mode for the LED matrix
172
    ;;    0: shows modulation assignments after power-on
173
    ;;    1: shows modulation meters after power-on
174
    ;; the mode can be toggled by pressing two mod target buttons at the same time (e.g. O1 and O2 Pitch)
175
#define DEFAULT_LEDMATRIX_MODE  0
176
 
177
    ;; if != 0, special variations for MB6582 hardware will be selected
178
#define DEFAULT_MB6582_CS   0
179
 
180
 
181
    org 0x3082      ; never change the origin!
182
; ==========================================================================
183
;  In this table all button functions are mapped to the DIN pins
184
;
185
;  The function name can be found on the left, the shift register and pin
186
;  number on the right side.
187
;
188
;  SR/pin numbers:
189
;     SR =  1 for the first DIN shift register
190
;     SR =  2 for the second DIN shift register
191
;     ...
192
;     SR = 16 for the last DIN shift register
193
;
194
;     Pin = 0 for the D0 input pin of the shift register
195
;     Pin = 1 for the D1 input pin of the shift register
196
;     ...
197
;     Pin = 7 for the last input pin (D7) of the shift register
198
;
199
;  Set the SR and pin number to 0 if a button function should not be used
200
;  or remove the entry
201
;
202
;  Add +16 to the SR number if the button is part of the button matrix
203
;  (DEFAULT_SRM_BUTTONS_DIN must be > 0!)
204
;
205
;  The table must be terminated with DIN_ENTRY_EOT!
206
; ==========================================================================
207
 
208
DIN_ENTRY MACRO function, sr, pin
209
    dw  function, (pin + 8*(sr-1)) & 0xff
210
    ENDM
211
 
212
DIN_ENTRY_EOT MACRO
213
    dw  0x0000, 0x0000
214
    ENDM
215
 
216
CS_MENU_DIN_TABLE
217
    DIN_ENTRY   CS_MENU_BUTTON_Sel1,     16+8,   0
218
    DIN_ENTRY   CS_MENU_BUTTON_Sel2,     16+8,   1
219
    DIN_ENTRY   CS_MENU_BUTTON_Sel3,     16+8,   2
220
    DIN_ENTRY   CS_MENU_BUTTON_Sel4,     16+8,   3
221
    DIN_ENTRY   CS_MENU_BUTTON_Sel5,     16+8,   4
222
    DIN_ENTRY   CS_MENU_BUTTON_Exec,     16+8,   7
223
 
224
    DIN_ENTRY   CS_MENU_BUTTON_SID1,     16+7,   0
225
    DIN_ENTRY   CS_MENU_BUTTON_SID2,     16+7,   1
226
    DIN_ENTRY   CS_MENU_BUTTON_SID3,     16+7,   2
227
    DIN_ENTRY   CS_MENU_BUTTON_SID4,     16+7,   3
228
    DIN_ENTRY   CS_MENU_BUTTON_Shift,    16+7,   4  ; was: link button
229
    DIN_ENTRY   CS_MENU_BUTTON_CC_PageUp, 16+7,  5  ; combined CC/PageUp -- CC actived together with shift button (no error)
230
    DIN_ENTRY   CS_MENU_BUTTON_Edit_PageDown, 16+7, 6   ; combined Edit/PageDown -- Edit actived together with shift button (no error)
231
 
232
    DIN_ENTRY   CS_MENU_BUTTON_Osc_Sel,  16+1,   0
233
    DIN_ENTRY   CS_MENU_BUTTON_Osc_Ctrl, 16+1,   1
234
    DIN_ENTRY   CS_MENU_BUTTON_Osc_Wav,  16+1,   2
235
    DIN_ENTRY   CS_MENU_BUTTON_Osc_RS,   16+1,   3
236
 
237
    DIN_ENTRY   CS_MENU_BUTTON_Fil_Sel,  16+3,   0
238
    DIN_ENTRY   CS_MENU_BUTTON_Fil_Mod,  16+3,   1
239
 
240
    DIN_ENTRY   CS_MENU_BUTTON_LFO_Sel,  16+1,   4
241
    DIN_ENTRY   CS_MENU_BUTTON_LFO_Wav,  16+1,   5
242
 
243
    DIN_ENTRY   CS_MENU_BUTTON_Env_Sel,  16+3,   6
244
    DIN_ENTRY   CS_MENU_BUTTON_Env_Ctrl, 16+3,   7
245
 
246
    DIN_ENTRY   CS_MENU_BUTTON_M_O1Ptch, 16+6,   0
247
    DIN_ENTRY   CS_MENU_BUTTON_M_O2Ptch, 16+6,   1
248
    DIN_ENTRY   CS_MENU_BUTTON_M_O3Ptch, 16+6,   2
249
    DIN_ENTRY   CS_MENU_BUTTON_M_O1PW,   16+6,   3
250
    DIN_ENTRY   CS_MENU_BUTTON_M_O2PW,   16+6,   4
251
    DIN_ENTRY   CS_MENU_BUTTON_M_O3PW,   16+6,   5
252
    DIN_ENTRY   CS_MENU_BUTTON_M_Filter, 16+6,   6
253
    DIN_ENTRY   CS_MENU_BUTTON_M_E1,     16+5,   0
254
    DIN_ENTRY   CS_MENU_BUTTON_M_E2,     16+5,   1
255
    DIN_ENTRY   CS_MENU_BUTTON_M_L1,     16+5,   2
256
    DIN_ENTRY   CS_MENU_BUTTON_M_L2,     16+5,   3
257
    DIN_ENTRY   CS_MENU_BUTTON_M_L3,     16+5,   4
258
    DIN_ENTRY   CS_MENU_BUTTON_M_L4,     16+5,   5
259
    DIN_ENTRY   CS_MENU_BUTTON_M_L5,     16+5,   6
260
    DIN_ENTRY   CS_MENU_BUTTON_M_L6,     16+5,   7
261
 
262
    ;; don't remove this "end-of-table" entry!
263
    DIN_ENTRY_EOT
264
 
265
 
266
; ==========================================================================
267
;  The following table defines all available DOUT pins with the appr.
268
;  register and bit which is assigned to the pin
269
;  CS_MENU_LED_Update uses this table to update all LEDs
270
; 
271
;  The register name and bit number can be found on the left, 
272
;  the shift register and pin number on the right side.
273
;
274
;  SR/pin numbers:
275
;     SR =  0 for J5 pins (note: the DEFAULT_J5_FUNCTION switch has to be set to "2" to get this working)
276
;
277
;     SR =  1 for the first DOUT shift register
278
;     SR =  2 for the second DOUT shift register
279
;     ...
280
;     SR = 16 for the last DOUT shift register
281
;
282
;     Pin = 0 for the D7 output pin of the shift register
283
;     Pin = 1 for the D6 output pin of the shift register
284
;     ...
285
;     Pin = 7 for the last output pin (D0) of the shift register
286
;
287
;  Set the SR and pin number to 0 if a LED function should not be used
288
;
289
;  Add +16 to the SR number if the LED is part of the LED matrix
290
;  (DEFAULT_SRM_LEDS_DOUT must be > 0!)
291
;
292
;  The table must be terminated with DOUT_ENTRY_EOT!
293
; ==========================================================================
294
 
295
DOUT_ENTRY MACRO reg, bit, sr, pin
296
        if sr == 0      ; J5 selected
297
        dw  reg, bit | ((pin | 0x80) << 8)
298
    else            ; SR selected
299
        dw  reg, bit | ((pin + 8*(sr-1)) << 8)
300
    endif
301
    ENDM
302
 
303
DOUT_ENTRY_EOT MACRO
304
    dw  0x0000, 0x0000
305
    ENDM
306
 
307
CS_MENU_DOUT_TABLE
308
    ;;      Register and bit            SR# Pin#      Description
309
    DOUT_ENTRY  CS_MENU_SELECTED_SID_FLAGS, 0,      16+7,   0   ; SID1 LED
310
    DOUT_ENTRY  CS_MENU_SELECTED_SID_FLAGS, 1,      16+7,   1   ; SID2 LED
311
    DOUT_ENTRY  CS_MENU_SELECTED_SID_FLAGS, 2,      16+7,   2   ; SID3 LED
312
    DOUT_ENTRY  CS_MENU_SELECTED_SID_FLAGS, 3,      16+7,   3   ; SID4 LED
313
 
314
    DOUT_ENTRY  CS_MENU_MODE, 0,            16+7,   4   ; Shift LED
315
    DOUT_ENTRY  CS_MENU_MODE, 1,            16+7,   5   ; CC LED
316
    DOUT_ENTRY  CS_MENU_MODE, 4,            16+7,   6   ; Edit LED
317
 
318
    DOUT_ENTRY  CS_MENU_SELECTED_OSC_FLAGS, 0,      16+1,   0   ; OSC1 LED
319
    DOUT_ENTRY  CS_MENU_SELECTED_OSC_FLAGS, 1,      16+1,   1   ; OSC2 LED
320
    DOUT_ENTRY  CS_MENU_SELECTED_OSC_FLAGS, 2,      16+1,   2   ; OSC3 LED
321
 
322
    DOUT_ENTRY  TMP1, 0,                16+1,   4   ; OSC Env LED
323
    DOUT_ENTRY  TMP1, 1,                16+1,   5   ; OSC Misc LED
324
    DOUT_ENTRY  TMP1, 2,                16+1,   6   ; OSC Assign LED
325
 
326
    DOUT_ENTRY  TMP1, 4,                16+2,   0   ; OSC Triangle LED
327
    DOUT_ENTRY  TMP1, 5,                16+2,   1   ; OSC Saw LED
328
    DOUT_ENTRY  TMP1, 6,                16+2,   2   ; OSC Pulse LED
329
    DOUT_ENTRY  TMP1, 7,                16+2,   3   ; OSC Noise LED
330
 
331
    DOUT_ENTRY  TMP2, 0,                16+2,   4   ; OSC Sync LED
332
    DOUT_ENTRY  TMP2, 1,                16+2,   5   ; OSC Ring LED
333
 
334
    DOUT_ENTRY  TMP3, 0,                16+3,   0   ; Filter O1 LED
335
    DOUT_ENTRY  TMP3, 1,                16+3,   1   ; Filter O2 LED
336
    DOUT_ENTRY  TMP3, 2,                16+3,   2   ; Filter O3 LED
337
    DOUT_ENTRY  TMP3, 3,                16+3,   3   ; Filter Ext LED
338
 
339
    DOUT_ENTRY  TMP3, 4,                16+3,   4   ; Filter LP LED
340
    DOUT_ENTRY  TMP3, 5,                16+3,   5   ; Filter BP LED
341
    DOUT_ENTRY  TMP3, 6,                16+3,   6   ; Filter HP LED
342
    DOUT_ENTRY  TMP3, 7,                16+3,   7   ; Filter 3O LED
343
 
344
    DOUT_ENTRY  TMP2, 4,                16+4,   0   ; ENV1 LED
345
    DOUT_ENTRY  TMP2, 5,                16+4,   1   ; ENV2 LED
346
 
347
    DOUT_ENTRY  TMP2, 6,                16+4,   4   ; ENV Ctrl LED
348
    DOUT_ENTRY  TMP2, 7,                16+4,   5   ; ENV Assign LED
349
 
350
    DOUT_ENTRY  TMP4, 0,                16+5,   0   ; LFO1 LED
351
    DOUT_ENTRY  TMP4, 1,                16+5,   1   ; LFO2 LED
352
    DOUT_ENTRY  TMP4, 2,                16+5,   2   ; LFO3 LED
353
    DOUT_ENTRY  TMP4, 3,                16+5,   3   ; LFO4 LED
354
    DOUT_ENTRY  TMP4, 4,                16+5,   4   ; LFO5 LED
355
    DOUT_ENTRY  TMP4, 5,                16+5,   5   ; LFO6 LED
356
 
357
    DOUT_ENTRY  TMP5, 0,                16+6,   0   ; LFO Sine LED
358
    DOUT_ENTRY  TMP5, 1,                16+6,   1   ; LFO Triangle LED
359
    DOUT_ENTRY  TMP5, 2,                16+6,   2   ; LFO Saw LED
360
    DOUT_ENTRY  TMP5, 3,                16+6,   3   ; LFO Pulse LED
361
    DOUT_ENTRY  TMP5, 4,                16+6,   4   ; LFO Random LED
362
 
363
    ;; don't remove this "end-of-table" entry!
364
    DOUT_ENTRY_EOT
365
 
366
 
367
;; --------------------------------------------------------------------------
368
;; In this table DIN pins have to be assigned to rotary encoders for the
369
;; MIOS_ENC driver 
370
;; 
371
;; up to 64 entries are provided, for MIDIbox SID 15 entries are expected
372
;; 
373
;; The table must be terminated with an ENC_EOT entry.
374
;; 
375
;; ENC_ENTRY provides following parameters
376
;;    o first parameter: number of shift register - 1, 2, 3, ... 16
377
;;    o second parameter: number of pin; since two pins are necessary
378
;;      for each encoder, an even number is expected: 0, 2, 4 or 6
379
;;    o the third parameter contains the encoder mode:
380
;;      either MIOS_ENC_MODE_NON_DETENTED
381
;;          or MIOS_ENC_MODE_DETENTED1
382
;;          or MIOS_ENC_MODE_DETENTED2
383
;;          or MIOS_ENC_MODE_DETENTED3
384
;;      see also http://www.midibox.org/dokuwiki/doku.php?id=encoder_types
385
;;
386
;; Configuration Examples:
387
;;    ENC_ENTRY  1,  0,  MIOS_ENC_MODE_NON_DETENTED    ; non-detented encoder at pin 0 and 1 of SR 1
388
;;    ENC_ENTRY  1,  2,  MIOS_ENC_MODE_DETENTED1       ; detented encoder at pin 2 and 3 of SR 1
389
;;    ENC_ENTRY  9,  6,  MIOS_ENC_MODE_NON_DETENTED    ; non-detented encoder at pin 6 and 7 of SR 9
390
;; --------------------------------------------------------------------------
391
    org 0x3280      ; never change the origin!
392
 
393
    ;; encoder entry structure
394
ENC_ENTRY MACRO sr, din_0, mode
395
    dw  (mode << 8) | (din_0 + 8*(sr-1))
396
    ENDM   
397
ENC_EOT MACRO
398
    dw  0xffff
399
    ENDM
400
 
401
MIOS_ENC_PIN_TABLE
402
    ;;        SR  Pin  Mode
403
#if CS_MENU_USE_INCDEC_BUTTONS == 0
404
    ENC_ENTRY  1,  0,  MIOS_ENC_MODE_DETENTED2  ; menu encoder
405
#endif
406
 
407
    ;; additional CS encoders
408
    ;;        SR  Pin  Mode
409
    ENC_ENTRY  1,  2,  MIOS_ENC_MODE_DETENTED2  ; Osc delay/transpose/assign #1
410
    ENC_ENTRY  1,  4,  MIOS_ENC_MODE_DETENTED2  ; Osc attack/finetune/assign #2
411
    ENC_ENTRY  1,  6,  MIOS_ENC_MODE_DETENTED2  ; Osc decay/portamento/assign #3
412
 
413
    ENC_ENTRY  2,  0,  MIOS_ENC_MODE_DETENTED2  ; Osc sustain/release/assign #4
414
    ENC_ENTRY  2,  2,  MIOS_ENC_MODE_DETENTED2  ; Osc release/pulsewidth/assign #5
415
    ENC_ENTRY  2,  4,  MIOS_ENC_MODE_DETENTED2  ; LFO rate
416
    ENC_ENTRY  2,  6,  MIOS_ENC_MODE_DETENTED2  ; LFO depth
417
 
418
    ENC_ENTRY  3,  0,  MIOS_ENC_MODE_DETENTED2  ; Filter CutOff
419
    ENC_ENTRY  3,  2,  MIOS_ENC_MODE_DETENTED2  ; Filter Resonance
420
    ENC_ENTRY  3,  4,  MIOS_ENC_MODE_DETENTED2  ; Env depth/assign #1
421
    ENC_ENTRY  3,  6,  MIOS_ENC_MODE_DETENTED2  ; Env attack/assign #2
422
 
423
    ENC_ENTRY  4,  0,  MIOS_ENC_MODE_DETENTED2  ; Env decay/assign #3
424
    ENC_ENTRY  4,  2,  MIOS_ENC_MODE_DETENTED2  ; Env sustain/assign #4
425
    ENC_ENTRY  4,  4,  MIOS_ENC_MODE_DETENTED2  ; Env release/assign #5
426
 
427
    ;; don't remove this "end-of-table" entry!
428
    ENC_EOT
429
 
430
 
431
;; include the rest of the application
432
#include "src/main.inc"