NB OUTPORT and INPORT will need editing to suit your setup. These are my settings.
VERSION 1 # Currently, this should only be 1.
# Supports all alphanumeric ASCII, and ' ', '_', '-', '+' - can also be NULL
TRACKNAME NightSky
# Can be POLY, DRUM, MPE, or NULL
TYPE POLY
# Can be A, B, C, D, USBD, USBH, CVGx (x between 1&4), CVx, Gx, or NULL
OUTPORT C
# Can be x (between 1-16), or NULL -- this is ignored if output port is not MIDI
OUTCHAN 01
# Can be NONE, ALLACTIVE, A, B, USBH, USBD, CVG, or NULL
INPORT B
# Can be x (between 1-16), ALL, or NULL. This definition will be ignored if INPORT is NONE, ALLACTIVE or CVG
INCHAN 05
# 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]
[/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]
[/PC]
# CC
# Syntax: CC_NUMBER NAME or CC_NUMBER:DEFAULT=xx NAME
# DEFAULT_VALUE must be a valid number between 0 and 127
[CC]
0 Bank Select
11 Reverb Level
12 Dry Level
13 Mod Speed
14 Mod Target
15 Mod Depth
16 Mod Shape
17 Pre Delay
18 Decay Length
19 Decay Texture
20 Decay Size Pitch
21 Decay Quantize
22 Tone Low Cut
23 Tone High Cut
24 Tone Filter
25 Tone Lowpass Q
26 Voice Interval
27 Voice Scale Select
28 Voice Shimmer
29 Voice Shimmer Level
30 Voice Glimmer
31 Voice Glimmer Gain
33 Voice Drive
34 Voice Drive Level
35 Freeze
36 Morph
37 Morph Speed
41 Sequence Mode
42 Sequencer Step 1 OffOn
43 Sequencer Step 2 OffOn
44 Sequencer Step 3 OffOn
45 Sequencer Step 4 OffOn
46 Sequencer Step 5 OffOn
47 Sequencer Step 6 OffOn
48 Sequencer Step 7 OffOn
49 Sequencer Step 8 OffOn
50 Sequencer Step 1 Size
51 Sequencer Step 2 Size
52 Sequencer Step 3 Size
53 Sequencer Step 4 Size
54 Sequencer Step 5 Size
55 Sequencer Step 6 Size
56 Sequencer Step 7 Size
57 Sequencer Step 8 Size
58 Sequence Glide
80 Footswitch On
81 Footswitch Favorite
82 Footswitch Infinite
83 Persist
102 Bypass On
[/CC]
# ASSIGN
# Syntax: POT_NUMBER TYPE:VALUE or POT_NUMBER TYPE:VALUE DEFAULT=DEFAULT_VALUED
# 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]
1 CC:11 DEFAULT=100
2 CC:18 Decay Length
3 CC:19 Decay Texture
4 CC:20 Decay SizePitch
5 CC:28 Shimmer Pitch
6 CC:29 Shimmer Level
7 CC:30 Glimmer Btn
8 CC:31 Glimmer Gain
[/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]
CC:11
CC:18
CC:19
CC:20
CC:28
CC:29
CC:30
CC:31
[/AUTOMATION]
# This section will be readable from Hapax.
[COMMENT]
[/COMMENT]
Comments about your instrument definition goes here