Subversion Repositories svn.mios

Rev

Rev 745 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 745 Rev 1122
Line 1... Line 1...
1
; $Id: sid_cc_table.inc 745 2009-03-10 20:51:30Z tk $
1
; $Id: sid_cc_table.inc 1122 2013-04-20 12:37:28Z tk $
2
;
2
;
3
; MIDIbox SID
3
; MIDIbox SID
4
; CC Table
4
; CC Table
5
; maps CCs to engine specific parameters which are listed in sid_par_table.inc
5
; maps CCs to engine specific parameters which are listed in sid_par_table.inc
6
;
6
;
Line 15... Line 15...
15
;; --------------------------------------------------------------------------
15
;; --------------------------------------------------------------------------
16
;;  This function sets a parameter via CC
16
;;  This function sets a parameter via CC
17
;;  IN:	SID_MIDI_PARAMETER1 selects CC number
17
;;  IN:	SID_MIDI_PARAMETER1 selects CC number
18
;;      SID_MIDI_PARAMETER2 contains CC value
18
;;      SID_MIDI_PARAMETER2 contains CC value
19
;;      SID_PATCH_BUFFER_SHADOW + SID_Ix_ENGINE[1:0] contains engine number
19
;;      SID_PATCH_BUFFER_SHADOW + SID_Ix_ENGINE[1:0] contains engine number
-
 
20
;;      MIOS_PARAMETER3 contains channel/instrument selection
20
;;  USES: TABLAT, TBLPTR[LHU], PROD[LH], MIOS_PARAMETER[123], TMP1 (!!!)
21
;;  USES: TABLAT, TBLPTR[LHU], PROD[LH], MIOS_PARAMETER[123], TMP1 (!!!)
21
;; --------------------------------------------------------------------------
22
;; --------------------------------------------------------------------------
22
SID_CC_TABLE_Set
23
SID_CC_TABLE_Set
23
	SET_BSR	SID_BASE
24
	SET_BSR	SID_BASE
24
25
Line 70... Line 71...
70
71
71
SID_CC_TABLE_Set_Unscaled
72
SID_CC_TABLE_Set_Unscaled
72
	;; pass 7bit value -> MIOS_PARAMETER[12]
73
	;; pass 7bit value -> MIOS_PARAMETER[12]
73
	movff	SID_MIDI_PARAMETER2, MIOS_PARAMETER1
74
	movff	SID_MIDI_PARAMETER2, MIOS_PARAMETER1
74
	clrf	MIOS_PARAMETER2
75
	clrf	MIOS_PARAMETER2
75
	;; modify both channels -> MIOS_PARAMETER3
76
	;; MIOS_PARAMETER3 already prepared before function call
76
	movlw	0x03
-
 
77
	movwf	MIOS_PARAMETER3
-
 
78
	;; perform parameter change
77
	;; perform parameter change
79
	movf	TMP1, W
78
	movf	TMP1, W
80
	call	SID_PARIN_Set
79
	call	SID_PARIN_Set
81
 	rgoto	SID_CC_TABLE_Set_End
80
 	rgoto	SID_CC_TABLE_Set_End
82
81
83
SID_CC_TABLE_Set_Scaled
82
SID_CC_TABLE_Set_Scaled
84
	;; convert 7bit CC value to 16bit value -> MIOS_PARAMETER[12]
83
	;; convert 7bit CC value to 16bit value -> MIOS_PARAMETER[12]
85
	clrf	MIOS_PARAMETER1
84
	clrf	MIOS_PARAMETER1
86
	rlf	SID_MIDI_PARAMETER2, W, BANKED
85
	rlf	SID_MIDI_PARAMETER2, W, BANKED
87
	movwf	MIOS_PARAMETER2
86
	movwf	MIOS_PARAMETER2
88
	;; modify both channels -> MIOS_PARAMETER3
87
	;; MIOS_PARAMETER3 already prepared before function call
89
	movlw	0x03
-
 
90
	movwf	MIOS_PARAMETER3
-
 
91
	;; perform parameter change
88
	;; perform parameter change
92
	movf	TMP1, W
89
	movf	TMP1, W
93
	call	SID_PARIN_Set16
90
	call	SID_PARIN_Set16
94
	;; 	rgoto	SID_CC_TABLE_Set_End
91
	;; 	rgoto	SID_CC_TABLE_Set_End
95
92
Line 118... Line 115...
118

115

119
;; --------------------------------------------------------------------------
116
;; --------------------------------------------------------------------------
120
;; -- Lead Engine
117
;; -- Lead Engine
121
;; --------------------------------------------------------------------------
118
;; --------------------------------------------------------------------------
122
SID_CC_TABLE_L
119
SID_CC_TABLE_L
123
SID_CC_TABLE_B
-
 
124
SID_CC_TABLE_D
-
 
125
SID_CC_TABLE_M
-
 
126
	db	0x00, 0x00, 0x02, 0x03, 0x04, 0x05, 0x00, 0x01	; offset 0x00
120
	db	0x00, 0x00, 0x02, 0x03, 0x04, 0x05, 0x00, 0x01	; offset 0x00
127
	db	0x06, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00	; offset 0x08
121
	db	0x06, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00	; offset 0x08
128
	db	0x00, 0x00, 0x00, 0x00, 0x20, 0x21, 0x22, 0x23	; offset 0x10
122
	db	0x00, 0x00, 0x00, 0x00, 0x20, 0x21, 0x22, 0x23	; offset 0x10
129
	db	0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2a, 0x2b	; offset 0x18
123
	db	0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2a, 0x2b	; offset 0x18
130
	db	0x2c, 0x2d, 0x2e, 0x2f, 0x48, 0x4c, 0x00, 0x00	; offset 0x20
124
	db	0x2c, 0x2d, 0x2e, 0x2f, 0x48, 0x4c, 0x00, 0x00	; offset 0x20
Line 134... Line 128...
134
	db	0x00, 0x00, 0x00, 0x00, 0x30, 0x31, 0x32, 0x33	; offset 0x40
128
	db	0x00, 0x00, 0x00, 0x00, 0x30, 0x31, 0x32, 0x33	; offset 0x40
135
	db	0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f	; offset 0x48
129
	db	0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f	; offset 0x48
136
	db	0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47	; offset 0x50
130
	db	0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47	; offset 0x50
137
	db	0x00, 0x00, 0x60, 0x61, 0x62, 0x63, 0x64, 0x65	; offset 0x58
131
	db	0x00, 0x00, 0x60, 0x61, 0x62, 0x63, 0x64, 0x65	; offset 0x58
138
	db	0x66, 0x67, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00	; offset 0x60
132
	db	0x66, 0x67, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00	; offset 0x60
-
 
133
	db	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00	; offset 0x68
-
 
134
	db	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00	; offset 0x70
-
 
135
	db	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00	; offset 0x78
-
 
136

-
 
137
-
 
138
SID_CC_TABLE_B
-
 
139
	db	0x00, 0x00, 0x00, 0x00, 0x61, 0x65, 0x00, 0x01	; offset 0x00
-
 
140
	db	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00	; offset 0x08
-
 
141
	db	0x00, 0x00, 0x00, 0x00, 0x21, 0x00, 0x00, 0x00	; offset 0x10
-
 
142
	db	0x25, 0x00, 0x00, 0x00, 0x29, 0x00, 0x00, 0x00	; offset 0x18
-
 
143
	db	0x2d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00	; offset 0x20
-
 
144
	db	0xc1, 0xc5, 0xc9, 0xcd, 0xd1, 0xd5, 0xd9, 0xe1	; offset 0x28
-
 
145
	db	0x00, 0x00, 0x89, 0x91, 0x99, 0xa1, 0x8d, 0x95	; offset 0x30
-
 
146
	db	0x9d, 0xa5, 0x00, 0x00, 0x69, 0x6d, 0x71, 0x00	; offset 0x38
-
 
147
	db	0x00, 0x00, 0x00, 0x00, 0x31, 0x00, 0x00, 0x00	; offset 0x40
-
 
148
	db	0x39, 0x00, 0x00, 0x00, 0x3d, 0x00, 0x00, 0x00	; offset 0x48
-
 
149
	db	0x41, 0x00, 0x00, 0x00, 0x45, 0x00, 0x00, 0x00	; offset 0x50
-
 
150
	db	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00	; offset 0x58
-
 
151
	db	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00	; offset 0x60
-
 
152
	db	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00	; offset 0x68
-
 
153
	db	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00	; offset 0x70
-
 
154
	db	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00	; offset 0x78
-
 
155

-
 
156
-
 
157
SID_CC_TABLE_D
-
 
158
	db	0x00, 0x00, 0x00, 0x00, 0x04, 0x05, 0x00, 0x01	; offset 0x00
-
 
159
	db	0x06, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00	; offset 0x08
-
 
160
	db	0x00, 0x00, 0x00, 0x00, 0x30, 0x31, 0x32, 0x33	; offset 0x10
-
 
161
	db	0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3a, 0x3b	; offset 0x18
-
 
162
	db	0x3c, 0x3d, 0x3e, 0x3f, 0x00, 0x00, 0x00, 0x00	; offset 0x20
-
 
163
	db	0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87	; offset 0x28
-
 
164
	db	0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f	; offset 0x30
-
 
165
	db	0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97	; offset 0x38
-
 
166
	db	0x98, 0x99, 0x9a, 0x9b, 0x9c, 0x9d, 0x9e, 0x9f	; offset 0x40
-
 
167
	db	0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7	; offset 0x48
-
 
168
	db	0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf	; offset 0x50	
-
 
169
	db	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00	; offset 0x58
-
 
170
	db	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00	; offset 0x60
-
 
171
	db	0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7	; offset 0x68
-
 
172
	db	0xb8, 0xb9, 0xba, 0xbb, 0xbc, 0xbd, 0xbe, 0xbf	; offset 0x70	
-
 
173
	db	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00	; offset 0x78
-
 
174

-
 
175
-
 
176
SID_CC_TABLE_M
-
 
177
	db	0x00, 0x00, 0x00, 0x00, 0x04, 0x05, 0x00, 0x01	; offset 0x00
-
 
178
	db	0x06, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00	; offset 0x08
-
 
179
	db	0x00, 0x00, 0x00, 0x00, 0x21, 0x00, 0x00, 0x00	; offset 0x10
-
 
180
	db	0x29, 0x00, 0x00, 0x00, 0x31, 0x00, 0x00, 0x00	; offset 0x18
-
 
181
	db	0x39, 0x00, 0x00, 0x00, 0x69, 0x71, 0x00, 0x00	; offset 0x20
-
 
182
	db	0xc1, 0xc9, 0xd1, 0xd9, 0xe1, 0xe9, 0xf1, 0x00	; offset 0x28
-
 
183
	db	0x00, 0x00, 0x81, 0x89, 0x91, 0x99, 0xa1, 0xa9	; offset 0x30
-
 
184
	db	0xb1, 0xb9, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00	; offset 0x38
-
 
185
	db	0x00, 0x00, 0x00, 0x00, 0x41, 0x00, 0x00, 0x00	; offset 0x40
-
 
186
	db	0x49, 0x00, 0x00, 0x00, 0x51, 0x00, 0x00, 0x00	; offset 0x48
-
 
187
	db	0x59, 0x00, 0x00, 0x00, 0x61, 0x00, 0x00, 0x00	; offset 0x50
-
 
188
	db	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00	; offset 0x58
-
 
189
	db	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00	; offset 0x60
139
	db	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00	; offset 0x68
190
	db	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00	; offset 0x68
140
	db	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00	; offset 0x70
191
	db	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00	; offset 0x70
141
	db	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00	; offset 0x78
192
	db	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00	; offset 0x78