forked from snhirsch/katana-midi-bridge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobals.py
69 lines (56 loc) · 2.07 KB
/
globals.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#
#
#
SEND_PREFIX = ( 0x41, 0x00, 0x00, 0x00, 0x00, 0x33, 0x12 )
QUERY_PREFIX = ( 0x41, 0x00, 0x00, 0x00, 0x00, 0x33, 0x11 )
EDIT_ON = ( 0x7f, 0x00, 0x00, 0x01, 0x01 )
EDIT_OFF = ( 0x7f, 0x00, 0x00, 0x01, 0x00 )
PANEL_STATE_ADDR = ( 0x00, 0x00, 0x04, 0x20 )
PANEL_STATE_LEN = 0x0A
CURRENT_PRESET_ADDR = ( 0x00, 0x01, 0x00, 0x00 )
CURRENT_PRESET_LEN = 0x02
# Main Volume, emulate volume pedal?
# Uncomment this for main volume volume pedal emulation
#VOLUME_PEDAL_ADDR = ( 0x60, 0x00, 0x05, 0x61 )
# Uncomment this for pre-amp volume knob. The advantage of this is increasing
# volume pre any other other patch being applied (based on signal chain)
VOLUME_PEDAL_ADDR = ( 0x60, 0x00, 0x00, 0x28 )
#VOLUME_GAIN_ADDR = ( 0x60, 0x00, 0x00, 0x28 )
VOLUME_GAIN_ADDR = ( 0x60, 0x00, 0x00, 0x12 )
# Pre-amp
PRE_GAIN_ADDR = ( 0x60, 0x00, 0x00, 0x22 )
PRE_BASS_ADDR = ( 0x60, 0x00, 0x00, 0x24 )
PRE_MID_ADDR = ( 0x60, 0x00, 0x00, 0x25 )
PRE_TREBLE_ADDR = ( 0x60, 0x00, 0x00, 0x26 )
# Delay (1)
DELAY1_SW_ADDR = ( 0x60, 0x00, 0x05, 0x00 )
DELAY1_TIME_ADDR = ( 0x60, 0x00, 0x05, 0x02 )
DELAY1_FEEDBACK_ADDR = ( 0x60, 0x00, 0x05, 0x04 )
DELAY1_LEVEL_ADDR = ( 0x60, 0x00, 0x05, 0x06 )
# Reverb
REVERB_SW_ADDR = ( 0x60, 0x00, 0x05, 0x40 )
REVERB_TIME_ADDR = ( 0x60, 0x00, 0x05, 0x42 )
REVERB_LEVEL_ADDR = ( 0x60, 0x00, 0x05, 0x48 )
# Chorus
# Mod position
MOD_SW_ADDR = ( 0x60, 0x00, 0x01, 0x00 )
# DC30, Flanger, Phaser
MOD_DEPTH_ADDR = [( 0x60, 0x00, 0x02, 0x52 ),( 0x60, 0x00, 0x02, 0x0b ),( 0x60, 0x00, 0x02, 0x04 )]
MOD_INTENSITY_ADDR = [( 0x60, 0x00, 0x02, 0x53 ),( 0x60, 0x00, 0x02, 0x11 ),( 0x60, 0x00, 0x02, 0x09 )]
# Boost
BOOST_SW_ADDR = ( 0x60, 0x00, 0x00, 0x10 )
# Wah
WAH_SW_ADDR = ( 0x60, 0x00, 0x05, 0x50 )
COLOUR_ADDR = {
"booster": ( 0x60, 0x00, 0x06, 0x39 ),
"mod": ( 0x60, 0x00, 0x06, 0x3a ),
"delay": ( 0x60, 0x00, 0x06, 0x3c ),
"reverb": ( 0x60, 0x00, 0x06, 0x3d )
}
SW_ADDR_MAP = {
"booster": ( 0x60, 0x00, 0x00, 0x10 ),
"mod": ( 0x60, 0x00, 0x01, 0x00 ),
"delay":( 0x60, 0x00, 0x05, 0x00 ),
"reverb":( 0x60, 0x00, 0x05, 0x40 ),
"wah":( 0x60, 0x00, 0x05, 0x50 )
}