Subversion Repositories svn.mios32

Rev

Rev 1815 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1815 tk 1
# Multi Bank Demo
2
# - Button (and LED) 101..204 are located in bank 1 and 2
3
# - Button (and LED) 301..304 are located in bank 3 and 4
4
# - remaining buttons and LEDs are located in dedicated banks
5
 
6
# The run script is located in MULTIBNK.NGR - this file has to be uploaded as well!
7
 
8
RESET_HW
9
 
10
LCD "%C@(1:1:1)Multi-Banks"
11
 
12
 
13
# the SCS should emulate button/enc functions in main page
14
SCS soft1_button_emu_id=2000 \
15
    soft2_button_emu_id=2001 \
16
    soft3_button_emu_id=2002 \
17
    soft4_button_emu_id=2003 \
18
    shift_button_emu_id=2004 \
19
    enc_emu_id=2000
20
 
21
 
22
# Controlled from SCS buttons at J10 in main page
23
 
24
# select Bank1 directly
25
# call ^section 1 on each bank change
26
EVENT_BUTTON id=2000  type=Meta   meta=SetBank    meta=RunSection:1  button_mode=OnOnly range=1:1
27
 
28
# For testing purposes: decrement bank
29
# call ^section 1 on each bank change
30
EVENT_BUTTON id=2001  type=Meta   meta=DecBank    meta=RunSection:1   button_mode=OnOnly
31
 
32
# For testing purposes: increment bank
33
# call ^section 1 on each bank change
34
EVENT_BUTTON id=2002  type=Meta   meta=IncBank    meta=RunSection:1   button_mode=OnOnly
35
 
36
# For testing purposes: cycle bank
37
# call ^section 1 on each bank change
38
EVENT_BUTTON id=2003  type=Meta   meta=CycleBank  meta=RunSection:1   button_mode=OnOnly
39
 
40
 
41
# the SCS encoder at J10 just increments/decrements the bank
42
# call ^section 1 on each bank change
43
EVENT_ENC    id=2000  type=Meta   meta=SetBank    meta=RunSection:1 range=1:4
44
 
45
# This is a dummy LED without assigned hardware (hw_id=2000 not used anywhere else) and without MIDI event.
46
# the purpose of this EVENT item is to print the bank whenever the LCD is refreshed (e.g. after startup or bank change)
47
EVENT_LED id=2000 fwd_to_lcd=1 lcd_pos=1:17:1 label="Bnk%q"
48
 
49
 
50
# Button (and LEDs) in Bank 1 and 2
51
# The events will be activated in the .NGR script!
52
EVENT_BUTTON id=101 hw_id=1  fwd_id=LED:1  type=CC cc=16
53
EVENT_BUTTON id=102 hw_id=2  fwd_id=LED:2  type=CC cc=17
54
EVENT_BUTTON id=103 hw_id=3  fwd_id=LED:3  type=CC cc=18
55
EVENT_BUTTON id=104 hw_id=4  fwd_id=LED:4  type=CC cc=19
56
 
57
# Button (and LEDs) in Bank 1 only
58
EVENT_BUTTON id=105 hw_id=5  fwd_id=LED:5  type=CC cc=20  bank=1
59
EVENT_BUTTON id=106 hw_id=6  fwd_id=LED:6  type=CC cc=21  bank=1
60
EVENT_BUTTON id=107 hw_id=7  fwd_id=LED:7  type=CC cc=22  bank=1
61
EVENT_BUTTON id=108 hw_id=8  fwd_id=LED:8  type=CC cc=23  bank=1
62
 
63
# Button (and LEDs) in Bank 2 only
64
EVENT_BUTTON id=205 hw_id=5  fwd_id=LED:5  type=CC cc=24  bank=2
65
EVENT_BUTTON id=206 hw_id=6  fwd_id=LED:6  type=CC cc=25  bank=2
66
EVENT_BUTTON id=207 hw_id=7  fwd_id=LED:7  type=CC cc=26  bank=2
67
EVENT_BUTTON id=208 hw_id=8  fwd_id=LED:8  type=CC cc=27  bank=2
68
 
69
 
70
# Button (and LEDs) in Bank 3 and 4
71
# The events will be activated in the .NGR script!
72
EVENT_BUTTON id=301 hw_id=1  fwd_id=LED:1  type=CC cc=32
73
EVENT_BUTTON id=302 hw_id=2  fwd_id=LED:2  type=CC cc=33
74
EVENT_BUTTON id=303 hw_id=3  fwd_id=LED:3  type=CC cc=34
75
EVENT_BUTTON id=304 hw_id=4  fwd_id=LED:4  type=CC cc=35
76
 
77
# Button (and LEDs) in Bank 3 only
78
EVENT_BUTTON id=305 hw_id=5  fwd_id=LED:5  type=CC cc=36  bank=3
79
EVENT_BUTTON id=306 hw_id=6  fwd_id=LED:6  type=CC cc=37  bank=3
80
EVENT_BUTTON id=307 hw_id=7  fwd_id=LED:7  type=CC cc=38  bank=3
81
EVENT_BUTTON id=308 hw_id=8  fwd_id=LED:8  type=CC cc=39  bank=3
82
 
83
# Button (and LEDs) in Bank 4 only
84
EVENT_BUTTON id=405 hw_id=5  fwd_id=LED:5  type=CC cc=40  bank=4
85
EVENT_BUTTON id=406 hw_id=6  fwd_id=LED:6  type=CC cc=41  bank=4
86
EVENT_BUTTON id=407 hw_id=7  fwd_id=LED:7  type=CC cc=42  bank=4
87
EVENT_BUTTON id=408 hw_id=8  fwd_id=LED:8  type=CC cc=43  bank=4