Korg ER1 Mk1 & 2

VERSION 1 # Currently, this should only be 1.

# Supports all alphanumeric ASCII, and ' ', '_', '-', '+' - can also be NULL
TRACKNAME ER1

# Can be POLY, DRUM, MPE, or NULL
TYPE DRUM

# Can be A, B, C, D, USBD, USBH, CVGx (x between 1&4), CVx, Gx, or NULL
OUTPORT A

# Can be x (between 1-16), or NULL -- this is ignored if output port is not MIDI
OUTCHAN 3

# Can be NONE, ALLACTIVE, A, B, USBH, USBD, CVG, or NULL
INPORT NULL

# Can be x (between 1-16), ALL, or NULL. This definition will be ignored if INPORT is NONE, ALLACTIVE or CVG
INCHAN NULL

# This defines the default 'MAX RATE' for automation lanes.
# Can be NULL, 192, 96, 64, 48, 32, 24, 16, 12, 8, 6, 4, 3, 2, 1
MAXRATE NULL

# DRUMLANES
# Syntax: ROW:TRIG:CHAN:NOTENUMBER NAME
# ROW must be between 1 and 8
# TRIG can be between 0 and 127, or NULL
# CHAN can be a number between 1 and 16, Gx, CVx, CVGx (x between 1 and 4), or NULL
# NOTENUMBER can be between 0 and 127, or NULL
# NAME supports all alphanumeric ASCII, and ' ', '_', '-', '+' - can also be NULL
# Please note this section will be discarded for tracks which are not DRUM tracks
[DRUMLANES]
1:127:NULL:36 PS1
2:127:NULL:38 PS2
3:127:NULL:40 PS3
4:127:NULL:41 PS4
5:127:NULL:42 HH CLOSE
6:127:NULL:46 HH OPEN
7:127:NULL:49 CRASH
8:127:NULL:39 CLAP
#1:127:NULL:43 AUDIOIN1
#1:127:NULL:45 AUDIOIN2
[/DRUMLANES]


# PC
# Syntax: NUMBER NAME
# number must be either:
#   - A number (for simple PC)
#   - Three numbers, delimited by ':', which represent PC:MSB:LSB. You can put 'NULL' to not set the MSB/LSB.
# PC must be between 1...128
# MSB/LSB must be between 0...127
[PC]
1:0:0 A01
2:1:0 A02
3:2:0 A03
4:3:0 A04
5:4:0 A05
6:5:0 A06
7:6:0 A07
8:7:0 A08
9:8:0 A09
10:9:0 A10
11:10:0 A11
12:11:0 A12
13:12:0 A13
14:13:0 A14
15:14:0 A15
16:15:0 A16
17:16:0 A17
18:17:0 A18
19:18:0 A19
20:19:0 A20
21:20:0 A21
22:21:0 A22
23:22:0 A23
24:23:0 A24
25:24:0 A25
26:25:0 A26
27:26:0 A27
28:27:0 A28
29:28:0 A29
30:29:0 A30
31:30:0 A31
32:31:0 A32
33:32:0 A33
34:33:0 A34
35:34:0 A35
36:35:0 A36
37:36:0 A37
38:37:0 A38
39:38:0 A39
40:39:0 A40
41:40:0 A41
42:41:0 A42
43:42:0 A43
44:43:0 A44
45:44:0 A45
46:45:0 A46
47:46:0 A47
48:47:0 A48
49:48:0 A49
50:49:0 A50
51:50:0 A51
52:51:0 A52
53:52:0 A53
54:53:0 A54
55:54:0 A55
56:55:0 A56
57:56:0 A57
58:57:0 A58
59:58:0 A59
60:59:0 A60
61:60:0 A61
62:61:0 A62
63:62:0 A63
64:63:0 A64
65:64:0 B01
66:65:0 B02
67:66:0 B03
68:67:0 B04
69:68:0 B05
70:69:0 B06
71:70:0 B07
72:71:0 B08
73:72:0 B09
74:73:0 B10
75:74:0 B11
76:75:0 B12
77:76:0 B13
78:77:0 B14
79:78:0 B15
80:79:0 B16
81:80:0 B17
82:81:0 B18
83:82:0 B19
84:83:0 B20
85:84:0 B21
86:85:0 B22
87:86:0 B23
88:87:0 B24
89:88:0 B25
90:89:0 B26
91:90:0 B27
92:91:0 B28
93:92:0 B29
94:93:0 B30
95:94:0 B31
96:95:0 B32
97:96:0 B33
98:97:0 B34
99:98:0 B35
100:99:0 B36
101:100:0 B37
102:101:0 B38
103:102:0 B39
104:103:0 B40
105:104:0 B41
106:105:0 B42
107:106:0 B43
108:107:0 B44
109:108:0 B45
110:109:0 B46
111:110:0 B47
112:111:0 B48
113:112:0 B49
114:113:0 B50
115:114:0 B51
116:115:0 B52
117:116:0 B53
118:117:0 B54
119:118:0 B55
120:119:0 B56
121:120:0 B57
122:121:0 B58
123:122:0 B59
124:123:0 B60
125:124:0 B61
126:125:0 B62
127:126:0 B63
1:0:1 C01
2:1:1 C02
3:2:1 C03
4:3:1 C04
5:4:1 C05
6:5:1 C06
7:6:1 C07
8:7:1 C08
9:8:1 C09
10:9:1 C10
11:10:1 C11
12:11:1 C12
13:12:1 C13
14:13:1 C14
15:14:1 C15
16:15:1 C16
17:16:1 C17
18:17:1 C18
19:18:1 C19
20:19:1 C20
21:20:1 C21
22:21:1 C22
23:22:1 C23
24:23:1 C24
25:24:1 C25
26:25:1 C26
27:26:1 C27
28:27:1 C28
29:28:1 C29
30:29:1 C30
31:30:1 C31
32:31:1 C32
33:32:1 C33
34:33:1 C34
35:34:1 C35
36:35:1 C36
37:36:1 C37
38:37:1 C38
39:38:1 C39
40:39:1 C40
41:40:1 C41
42:41:1 C42
43:42:1 C43
44:43:1 C44
45:44:1 C45
46:45:1 C46
47:46:1 C47
48:47:1 C48
49:48:1 C49
50:49:1 C50
51:50:1 C51
52:51:1 C52
53:52:1 C53
54:53:1 C54
55:54:1 C55
56:55:1 C56
57:56:1 C57
58:57:1 C58
59:58:1 C59
60:59:1 C60
61:60:1 C61
62:61:1 C62
63:62:1 C63
64:63:1 D01
65:64:1 D02
66:65:1 D03
67:66:1 D04
68:67:1 D05
69:68:1 D06
70:69:1 D07
71:70:1 D08
72:71:1 D09
73:72:1 D10
74:73:1 D11
75:74:1 D12
76:75:1 D13
77:76:1 D14
78:77:1 D15
79:78:1 D16
80:79:1 D17
81:80:1 D18
82:81:1 D19
83:82:1 D20
84:83:1 D21
85:84:1 D22
86:85:1 D23
87:86:1 D24
88:87:1 D25
89:88:1 D26
90:89:1 D27
91:90:1 D28
92:91:1 D29
93:92:1 D30
94:93:1 D31
95:94:1 D32
96:95:1 D33
97:96:1 D34
98:97:1 D35
99:98:1 D36
100:99:1 D37
101:100:1 D38
102:101:1 D39
103:102:1 D40
104:103:1 D41
105:104:1 D42
106:105:1 D43
107:106:1 D44
108:107:1 D45
109:108:1 D46
110:109:1 D47
111:110:1 D48
112:111:1 D49
113:112:1 D50
114:113:1 D51
115:114:1 D52
116:115:1 D53
117:116:1 D54
118:117:1 D55
119:118:1 D56
120:119:1 D57
121:120:1 D58
122:121:1 D59
123:122:1 D60
124:123:1 D61
125:124:1 D62
126:125:1 D63
127:126:1 D64
[/PC]


# CC
# Syntax: CC_NUMBER NAME or CC_NUMBER:DEFAULT=xx NAME
# DEFAULT_VALUE must be a valid number between 0 and 127
[CC]
[/CC]

# CC Pair
# Syntax: CC_MSB:CC_LSB NAME or CC_MSB:CC_LSB:DEFAULT=xx NAME
# DEFAULT_VALUE must be a valid number between 0 and 16383
[CC_PAIR]
[/CC_PAIR]

# NRPN
# Syntax: "MSB:LSB:DEPTH NAME" or "MSB:LSB:DEPTH:DEFAULT=xx NAME"
# Lsb & msb should be between 0 and 127
  # Note: LSB can be over 127 ONLY if MSB is 0 or omitted
  # e.g. '0:1026:7 FOO', or ':2000:7 BAR' 
  # the examples above would be equivalent to '8:2:7 FOO' and '15:80:7 BAR' respectively
# DEPTH can be 7 or 14
# For NRPN: DEFAULT_VALUE must be a valid number, either between 0 and 127 (for 7 bit NRPNs) or between 0 and 16383 (for 14bit NRPNs)
[NRPN]
02:0:7 S1 Low Boost
02:1:7 S1 Pan
02:2:7 S1 Pitch
02:3:7 S1 Wave
02:4:7 S1 Mod Type
02:5:7 S1 Mod Speed
02:6:7 S1 Mod Depth
02:7:7 S1 Level
02:8:7 S1 Decay
02:10:7 S2 Low Boost
02:11:7 S2 Pan
02:12:7 S2 Pitch
02:13:7 S2 Wave
02:14:7 S2 Mod Type
02:15:7 S2 Mod Speed
02:16:7 S2 Mod Depth
02:17:7 S2 Level
02:18:7 S2 Decay
02:20:7 S3 Low Boost
02:21:7 S3 Pan
02:22:7 S3 Pitch
02:23:7 S3 Wave
02:24:7 S3 Mod Type
02:25:7 S3 Mod Speed
02:26:7 S3 Mod Depth
02:27:7 S3 Level
02:28:7 S3 Decay
02:30:7 S4 Low Boost
02:31:7 S4 Pan
02:32:7 S4 Pitch
02:33:7 S4 Wave
02:34:7 S4 Mod Type
02:35:7 S4 Mod Speed
02:36:7 S4 Mod Depth
02:37:7 S4 Level
02:38:7 S4 Decay
02:40:7 CHH Low Boost
02:41:7 CHH Pan
02:42:7 CHH Pitch
02:47:7 CHH Level
02:48:7 CHH Decay
02:50:7 OHH Low Boost
02:51:7 OHH Pan
02:52:7 OHH Pitch
02:57:7 OHH Level
02:58:7 OHH Decay
02:60:7 Crash Low Boost
02:61:7 Crash Pan
02:62:7 Crash Pitch
02:67:7 Crash Level
02:68:7 Crash Decay
02:70:7 Clap Low Boost
02:71:7 Clap Pan
02:72:7 Clap Pitch
02:77:7 Clap Level
02:78:7 Clap Decay
02:80:7 Audio In 1 Low Boost
02:81:7 Audio In 1 Pan
02:87:7 Audio In 1 Level
02:88:7 Audio In 1 Decay
02:90:7 Audio In 2 Low Boost
02:91:7 Audio In 2 Pan
02:97:7 Audio In 2 Level
02:98:7 Audio In 2 Decay
02:100:7 Delay Depth
02:101:7 Delay Time
02:107:7 Delay Type
02:102:7 Ring S1S2
02:103:7 Ring S4 Audio In
02:104:7 Input Gain 1
02:105:7 Input Gain 2
02:106:7 ACCENT LVL
02:108:7 Mute Solo Syn1Syn4
02:109:7 Mute Solo Samples
[/NRPN]


# ASSIGN
# Syntax: POT_NUMBER TYPE:VALUE or POT_NUMBER TYPE:VALUE DEFAULT=DEFAULT_VALUE
# POT_NUMBER must be between 1 and 8
# TYPE can be "CC", "PB" (pitchbend), "AT" (aftertouch), "CV", "NRPN", or "NULL" (this won't assign the pot).
# Non explicitly-defined pots will be considered "NULL"
# VALUE VALIDATION
#### For CC: Value must be a valid number between 0 and 119
#### For PB and AT, any text after the TYPE will be ignored
#### For CV, value must be between 1 and 4
#### For NRPN, value must be MSB:LSB:DEPTH, with both lsb & msb bebtween 0 and 127, and DEPTH being either 7 or 14
# DEFAULT VALUE
#### For CC: DEFAULT_VALUE must be a valid number between 0 and 127
#### For PB: DEFAULT_VALUE must be a valid number between 0 and 16383
#### For NRPN: DEFAULT_VALUE must be a valid number, either between 0 and 127 (for 7 bit NRPNs) or between 0 and 16383 (for 14bit NRPNs)
#### For CV: DEFAULT_VALUE must be either a valid number between 0 and 65535, or a voltage between -5V and 5V, e.g. "-4.25V" or "1.7V"
#### Please note default value will be ignored for PB and AT messages.
[ASSIGN]
[/ASSIGN]


# AUTOMATION
# Syntax: TYPE:VALUE
# TYPE can be "CC", "PB" (pitchbend), "AT" (aftertouch), "CV", or "NRPN"
# VALUE VALIDATION
#### For CC: Value must be a valid number between 0 and 119
#### For PB and AT, any text after the TYPE will be ignored
#### For CV, value must be between 1 and 4
#### For NRPN, value must be MSB:LSB:DEPTH, with both lsb & msb bebtween 0 and 127, and DEPTH being either 7 or 14
# NOTE: You are limited to 64 automation lanes
[AUTOMATION]
[/AUTOMATION]


# This section will be readable from Hapax.
[COMMENT]
KORG ER1 NRPN AND TRIGGERS CraigyC
[/COMMENT]

This isn’t fully tested apart from the NRPNs, pretty sure they all work, not tried the Program changes.
As there are only 8 drum pads from Hapax the audio in pads are commented out, but I left them in for future use.