# This is a comment, and blank lines are also ignored
# Active lines can begin with "cc" or "no".
# "cc" lines have a MIDI CC number followed by an OSC control path,
# optionally followed by a maximum value, e.g. 0.8 = 80% of full range.
# "no" lines have a MIDI note number followed by an OSC control path.

# The first non-blank, non-comment line must be the MIDI controller name
# or any prefix thereof
  UCX Midi Port 2

# Sliders control mix-levels of 1st 8 layers, up to 80% (0 dB)
cc 0   inst/1/mixLevel 0.8
cc 1   inst/2/mixLevel 0.8
cc 2   inst/3/mixLevel 0.8
cc 3   inst/4/mixLevel 0.8
cc 4   inst/5/mixLevel 0.8
cc 5   inst/6/mixLevel 0.8
cc 6   inst/7/mixLevel 0.8
cc 7   inst/8/mixLevel 0.8

# Knobs control AUX1-send levels of 1st 8 layers, up to 80% (0 dB)
cc 16  inst/1/auxSend/1 0.8
cc 17  inst/2/auxSend/1 0.8
cc 18  inst/3/auxSend/1 0.8
cc 19  inst/4/auxSend/1 0.8
cc 20  inst/5/auxSend/1 0.8
cc 21  inst/6/auxSend/1 0.8
cc 22  inst/7/auxSend/1 0.8
cc 23  inst/8/auxSend/1 0.8

# Knobs control AUX2-send levels of 1st 8 layers, up to 80% (0 dB)
cc 80  inst/1/auxSend/2 0.8
cc 81  inst/2/auxSend/2 0.8
cc 82  inst/3/auxSend/2 0.8
cc 83  inst/4/auxSend/2 0.8
cc 84  inst/5/auxSend/2 0.8
cc 85  inst/6/auxSend/2 0.8
cc 86  inst/7/auxSend/2 0.8
cc 87  inst/8/auxSend/2 0.8

# Knobs control AUX3-send levels of 1st 8 layers, up to 80% (0 dB)
cc 88  inst/1/auxSend/3 0.8
cc 89  inst/2/auxSend/3 0.8
cc 90  inst/3/auxSend/3 0.8
cc 91  inst/4/auxSend/3 0.8
cc 92  inst/5/auxSend/3 0.8
cc 93  inst/6/auxSend/3 0.8
cc 94  inst/7/auxSend/3 0.8
cc 95  inst/8/auxSend/3 0.8

# Knobs control AUX4-send levels of 1st 8 layers, up to 80% (0 dB)
cc 96  inst/1/auxSend/4 0.8
cc 97  inst/2/auxSend/4 0.8
cc 98  inst/3/auxSend/4 0.8
cc 99  inst/4/auxSend/4 0.8
cc 100  inst/5/auxSend/4 0.8
cc 101  inst/6/auxSend/4 0.8
cc 102  inst/7/auxSend/4 0.8
cc 103  inst/8/auxSend/4 0.8

# "S" buttons toggle the SOLO state of individual layers
cc 32  unify/solo/1
cc 33  unify/solo/2
cc 34  unify/solo/3
cc 35  unify/solo/4
cc 36  unify/solo/5
cc 37  unify/solo/6
cc 38  unify/solo/7
cc 39  unify/solo/8
 
# "M" buttons toggle the MUTE state of individual layers
cc 48  unify/mute/1
cc 49  unify/mute/2
cc 50  unify/mute/3
cc 51  unify/mute/4
cc 52  unify/mute/5
cc 53  unify/mute/6
cc 54  unify/mute/7
cc 55  unify/mute/8
 
# "R" buttons enable/disable individual layers at the MIDI level.
cc 64  unify/midiEnable/1
cc 65  unify/midiEnable/2
cc 66  unify/midiEnable/3
cc 67  unify/midiEnable/4
cc 68  unify/midiEnable/5
cc 69  unify/midiEnable/6
cc 70  unify/midiEnable/7
cc 71  unify/midiEnable/8

# Knobs control Pan of 1st 8 layers
cc 72  inst/1/panPos
cc 73  inst/2/panPos
cc 74  inst/3/panPos
cc 75  inst/4/panPos
cc 76  inst/5/panPos
cc 77  inst/6/panPos
cc 78  inst/7/panPos
cc 79  inst/8/panPos

# Master Level up to 80% (0 dB)
cc 104 master/mixLevel 0.8