X-Touch Mini example: Move the MIDI CC assignments on the ALT layer to a separate config, so that we don't mix up Mackie and MIDI control messages.

master 0.5
Albert Graef 2018-10-14 21:05:19 +02:00
parent 1898fe74cf
commit 70287a7e9f
2 changed files with 81 additions and 37 deletions

View File

@ -0,0 +1,64 @@
# This is an addon to XTouchMini.midizaprc which adds some extra MIDI CC
# assignments for the encoders and the master fader to the ALT layer.
# NOTE: This is to be used along with XTouchMini.midizaprc (which see).
# Copyright (c) 2018 Albert Graef <aggraef@gmail.com>
# Copying and distribution of this file, with or without modification, are
# permitted in any medium without royalty provided the copyright notice and
# this notice are preserved. This file is offered as-is, without any
# warranty.
JACK_NAME "midizap-XTouchMini+"
JACK_PORTS 2
JACK_IN1 X-TOUCH MINI MIDI 1
JACK_OUT1 ardour:MIDI control in
JACK_IN2 ardour:MIDI control out
JACK_OUT2 X-TOUCH MINI MIDI 1
[MIDI]
# ALT button (no feedback here, as this is already handled in the
# XTouchMini.midizaprc "mother" configuration)
E7 SHIFT2 RELEASE SHIFT2
# The encoders and the master fader are assigned to standard MIDI controls
# CC1..CC9 on the ALT layer, so you can assign them freely with Ardour's MIDI
# learn facility, and use the unit as an MC device at the same time.
# ALT encoders and fader = CC1..CC9, with direct feedback
2^CC16~ CC1 $M1
2^CC17~ CC2 $M2
2^CC18~ CC3 $M3
2^CC19~ CC4 $M4
2^CC20~ CC5 $M5
2^CC21~ CC6 $M6
2^CC22~ CC7 $M7
2^CC23~ CC8 $M8
2^PB[128]{0}-9 CC9'
# macros handling direct feedback for CC1..CC8
M1[12]{0} !CC48{33-43}'
M2[12]{0} !CC49{33-43}'
M3[12]{0} !CC50{33-43}'
M4[12]{0} !CC51{33-43}'
M5[12]{0} !CC52{33-43}'
M6[12]{0} !CC53{33-43}'
M7[12]{0} !CC54{33-43}'
M8[12]{0} !CC55{33-43}'
[MIDI2]
# feedback for the encoders on the ALT layer (CC1..CC8)
2^CC1[12]{0} CC48{33-43}'
2^CC2[12]{0} CC49{33-43}'
2^CC3[12]{0} CC50{33-43}'
2^CC4[12]{0} CC51{33-43}'
2^CC5[12]{0} CC52{33-43}'
2^CC6[12]{0} CC53{33-43}'
2^CC7[12]{0} CC54{33-43}'
2^CC8[12]{0} CC55{33-43}'

View File

@ -8,6 +8,9 @@
# is the case if the MC MODE LED on the right side is lit. If necessary, you
# can switch the device to MC mode by holding the MC key while powering it up.
# NOTE: There's an addon to this configuration with some MIDI CC bindings on
# the ALT layer, see XTouchMini+.midizaprc.
# Copyright (c) 2018 Albert Graef <aggraef@gmail.com>
# Copying and distribution of this file, with or without modification, are
@ -18,10 +21,10 @@
JACK_NAME "midizap-XTouchMini"
JACK_PORTS 2
# automatic connections
# Automatic connections for the device and Ardour.
JACK_IN1 X-TOUCH MINI MIDI 1
JACK_OUT1 ardour:mackie control in|ardour:MIDI control in
JACK_IN2 ardour:mackie control out|ardour:MIDI control out
JACK_OUT1 ardour:mackie control in
JACK_IN2 ardour:mackie control out
JACK_OUT2 X-TOUCH MINI MIDI 1
# Pass everything through, except for the translations below.
@ -68,11 +71,6 @@ SYSTEM_PASSTHROUGH
# [^SELECT] ... [UP]
# [LEFT] [RIGHT] [ZOOM] [^MARKER] [^NUDGE] [DOWN]
# Moreover, the encoders and the master fader are assigned to standard MIDI
# controls CC1..CC9 on this layer. These aren't used by MC, so you can assign
# them freely with Ardour's MIDI learn facility. This makes up for Ardour's
# lack of MC plugin controls.
# Note that the way I've configured this layer is somewhat tailored to Ardour,
# so you may want to adjust it to your liking. The SHIFT layer, in contrast,
# should be pretty generic, and work fine as is with most DAWs.
@ -152,27 +150,19 @@ C#7 B3 # bank right
2^C7 C8 # ALT+A = UP
2^C#7 C#8 # ALT+B = DOWN
# ALT encoders and fader = CC1..CC9, with direct feedback
2^CC16~ CC1 $M1
2^CC17~ CC2 $M2
2^CC18~ CC3 $M3
2^CC19~ CC4 $M4
2^CC20~ CC5 $M5
2^CC21~ CC6 $M6
2^CC22~ CC7 $M7
2^CC23~ CC8 $M8
# Encoders and fader are disabled on the ALT layer, to accommodate the MIDI CC
# bindings in XTouchMini+.midizaprc.
2^PB[128]{0}-9 CC9'
2^CC16~ NOP
2^CC17~ NOP
2^CC18~ NOP
2^CC19~ NOP
2^CC20~ NOP
2^CC21~ NOP
2^CC22~ NOP
2^CC23~ NOP
# macros handling direct feedback for CC1..CC8
M1[12]{0} !CC48{33-43}'
M2[12]{0} !CC49{33-43}'
M3[12]{0} !CC50{33-43}'
M4[12]{0} !CC51{33-43}'
M5[12]{0} !CC52{33-43}'
M6[12]{0} !CC53{33-43}'
M7[12]{0} !CC54{33-43}'
M8[12]{0} !CC55{33-43}'
2^PB[]-9 NOP
[MIDI2]
@ -198,13 +188,3 @@ PB[1536]{0}-5 CC52{33-43}'
PB[1536]{0}-6 CC53{33-43}'
PB[1536]{0}-7 CC54{33-43}'
PB[1536]{0}-8 CC55{33-43}'
# Also provide some feedback for the encoders on the ALT layer (CC1..CC8).
2^CC1[12]{0} CC48{33-43}'
2^CC2[12]{0} CC49{33-43}'
2^CC3[12]{0} CC50{33-43}'
2^CC4[12]{0} CC51{33-43}'
2^CC5[12]{0} CC52{33-43}'
2^CC6[12]{0} CC53{33-43}'
2^CC7[12]{0} CC54{33-43}'
2^CC8[12]{0} CC55{33-43}'