2018-09-09 18:12:13 +02:00
|
|
|
|
|
|
|
# Mackie emulation for the NI Maschine Mk3
|
|
|
|
|
|
|
|
# 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-Maschine"
|
|
|
|
JACK_PORTS 2
|
2018-09-12 10:52:23 +02:00
|
|
|
SYSTEM_PASSTHROUGH # pass through MCP feedback
|
2018-09-09 18:12:13 +02:00
|
|
|
|
|
|
|
# NOTE: At present, this controller isn't properly supported by ALSA, but it
|
|
|
|
# can be made to work in Linux with Harry van Haaren's Ctlra software. Use
|
|
|
|
# this version: https://github.com/agraef/openAV-Ctlra/tree/mapping_v1-ag
|
2018-09-12 10:52:23 +02:00
|
|
|
# Run ctlra_daemon -fnm alongside with midizap, and connect the ports as
|
2018-09-09 18:12:13 +02:00
|
|
|
# follows: Ctlra Maschine Mk3 -> midizap midi_in / midi_out -> Ardour mackie
|
|
|
|
# control in / mackie control out -> midizap midi_in2 / midi_out2 -> Ctlra
|
|
|
|
# Maschine Mk3.
|
|
|
|
|
|
|
|
[MIDI]
|
|
|
|
|
|
|
|
# The Mk3's dedicated shift key is used to provide alternative functions
|
|
|
|
# to some of the buttons and the faders.
|
2018-09-12 00:03:44 +02:00
|
|
|
?F2 SHIFT RELEASE SHIFT
|
2018-09-09 18:12:13 +02:00
|
|
|
|
|
|
|
# transport (assigned to the transport section on the bottom left)
|
2018-09-12 00:03:44 +02:00
|
|
|
F#5 A7 # Stop
|
|
|
|
E5 A#7 # Play
|
|
|
|
F5 B7 # Rec
|
|
|
|
C5 D7 # Cycle (RESTART/Loop key)
|
|
|
|
C#5 G7 # Rew (ERASE/Replace key)
|
|
|
|
D5 G#7 # FFwd (TAP/Metro key)
|
|
|
|
D#5 C#7 # Nudge (FOLLOW/Grid key)
|
2018-09-09 18:12:13 +02:00
|
|
|
|
|
|
|
# additional functions on shifted keys
|
2018-09-12 00:03:44 +02:00
|
|
|
^C#5 D#7 # In (SHIFT ERASE/Replace key)
|
|
|
|
^F5 E7 # Out (SHIFT Rec key)
|
|
|
|
^D5 F7 # Click (SHIFT TAP/Metro key)
|
|
|
|
^D#5 C7 # Mark (SHIFT FOLLOW/Grid key)
|
2018-09-09 18:12:13 +02:00
|
|
|
|
|
|
|
# switch between SMPTE and BBT timecode
|
2018-09-12 00:03:44 +02:00
|
|
|
C#6 F4 # (MIDI/Channel key)
|
2018-09-09 18:12:13 +02:00
|
|
|
|
|
|
|
# Bank/channel left/right (arrow keys in the top left section)
|
2018-09-12 00:03:44 +02:00
|
|
|
E6 A#3 # Bank Left
|
|
|
|
A5 B3 # Bank Right
|
|
|
|
^E6 C4 # Channel Left
|
|
|
|
^A5 C#4 # Channel Right
|
2018-09-09 18:12:13 +02:00
|
|
|
|
|
|
|
# the four buttons below the arrow keys are assigned to the utility functions
|
2018-09-12 00:03:44 +02:00
|
|
|
F6 G#6 # Save (SAVE/File key)
|
|
|
|
G#5 A6 # Undo (SETTINGS key)
|
|
|
|
F#6 A#6 # Cancel (AUTO key)
|
|
|
|
G5 B6 # Enter (MACRO/Set key)
|
2018-09-09 18:12:13 +02:00
|
|
|
|
|
|
|
# Track/Pan/Send/Instr (4 buttons right above the grid)
|
|
|
|
# NOTE: Only Pan and Send appear to be supported in Ardour.
|
2018-09-12 00:03:44 +02:00
|
|
|
G#3 E3 # Track (PAD MODE key)
|
|
|
|
A3 F#3 # Pan (KEYBOARD key)
|
|
|
|
A#3 F3 # Send (CHORDS key)
|
|
|
|
B3 A3 # Instr (STEPS key)
|
2018-09-09 18:12:13 +02:00
|
|
|
|
|
|
|
# the four buttons right above the touchstrip are used for the MC shift keys
|
2018-09-12 00:03:44 +02:00
|
|
|
A4 A#5 # Shift (PITCH key)
|
|
|
|
A#4 B5 # Control (MOD key)
|
|
|
|
B4 C6 # Option (PERFORM key)
|
|
|
|
D3 C#6 # Alt/Cmd (NOTES key)
|
2018-09-09 18:12:13 +02:00
|
|
|
|
|
|
|
# big encoder press/left/right/up/down assigned to the zoom/cursor keys
|
2018-09-12 00:03:44 +02:00
|
|
|
D2 C8 # Up
|
|
|
|
E2 C#8 # Down
|
|
|
|
D#2 D8 # Left
|
|
|
|
C#2 D#8 # Right
|
|
|
|
C2 E8 # Zoom
|
2018-09-09 18:12:13 +02:00
|
|
|
|
|
|
|
# The Mk3 only has one row of dedicated "channel buttons" on the top, which we
|
|
|
|
# use for channel select. But we'd also like to have buttons for rec, solo and
|
|
|
|
# mute, so we (rather arbitrarily) bind them to the shifted A..H and grid
|
|
|
|
# buttons.
|
|
|
|
|
|
|
|
# track select (top row right above the display)
|
2018-09-12 00:03:44 +02:00
|
|
|
G6 C2
|
|
|
|
G#6 C#2
|
|
|
|
A6 D2
|
|
|
|
A#6 D#2
|
|
|
|
B6 E2
|
|
|
|
C7 F2
|
|
|
|
C#7 F#2
|
|
|
|
D7 G2
|
2018-09-09 18:12:13 +02:00
|
|
|
|
|
|
|
# shifted top row
|
|
|
|
# We assign these to the function keys F1..F8 here, but of course you can
|
|
|
|
# remap these as needed.
|
2018-09-12 00:03:44 +02:00
|
|
|
^G6 F#4
|
|
|
|
^G#6 G4
|
|
|
|
^A6 G#4
|
|
|
|
^A#6 A4
|
|
|
|
^B6 A#4
|
|
|
|
^C7 B4
|
|
|
|
^C#7 C5
|
|
|
|
^D7 C#5
|
2018-09-09 18:12:13 +02:00
|
|
|
|
|
|
|
# shifted A..H keys = rec
|
2018-09-12 00:03:44 +02:00
|
|
|
^F#2 C0
|
|
|
|
^G2 C#0
|
|
|
|
^G#2 D0
|
|
|
|
^A2 D#0
|
|
|
|
^A#2 E0
|
|
|
|
^B2 F0
|
|
|
|
^C3 F#0
|
|
|
|
^C#3 G0
|
2018-09-09 18:12:13 +02:00
|
|
|
|
|
|
|
# upper half of grid, shifted = solo
|
|
|
|
^C4-10 G#0
|
|
|
|
^C#4-10 A0
|
|
|
|
^D4-10 A#0
|
|
|
|
^D#4-10 B0
|
|
|
|
^G#3-10 C1
|
|
|
|
^A3-10 C#1
|
|
|
|
^A#3-10 D1
|
|
|
|
^B3-10 D#1
|
|
|
|
|
|
|
|
# lower half of grid, shifted = mute
|
|
|
|
^E3-10 E1
|
|
|
|
^F3-10 F1
|
|
|
|
^F#3-10 F#1
|
|
|
|
^G3-10 G1
|
|
|
|
^C3-10 G#1
|
|
|
|
^C#3-10 A1
|
|
|
|
^D3-10 A#1
|
|
|
|
^D#3-10 B1
|
|
|
|
|
|
|
|
# The unshifted grid buttons are passed through unchanged, so that you can
|
|
|
|
# still use them as drum pads (provided that you filter out all MIDI channels
|
|
|
|
# except channel 10). Note that we use mod translations here, in order to
|
|
|
|
# preserve the velocities.
|
|
|
|
|
|
|
|
C3[]-10 C3-10
|
|
|
|
C#3[]-10 C#3-10
|
|
|
|
D3[]-10 D3-10
|
|
|
|
D#3[]-10 D#3-10
|
|
|
|
E3[]-10 E3-10
|
|
|
|
F3[]-10 F3-10
|
|
|
|
F#3[]-10 F#3-10
|
|
|
|
G3[]-10 G3-10
|
|
|
|
G#3[]-10 G#3-10
|
|
|
|
A3[]-10 A3-10
|
|
|
|
A#3[]-10 A#3-10
|
|
|
|
B3[]-10 B3-10
|
|
|
|
C4[]-10 C4-10
|
|
|
|
C#4[]-10 C#4-10
|
|
|
|
D4[]-10 D4-10
|
|
|
|
D#4[]-10 D#4-10
|
|
|
|
|
|
|
|
# Map the unshifted A..H buttons to program changes on channel 10 so that you
|
|
|
|
# can quickly switch the sounds of your drumkit, drum patterns etc. (This is
|
|
|
|
# just an example, you might want to disable these or remap them as you see
|
|
|
|
# fit.)
|
|
|
|
|
2018-09-12 00:03:44 +02:00
|
|
|
F#2 PC0-10
|
|
|
|
G2 PC1-10
|
|
|
|
G#2 PC2-10
|
|
|
|
A2 PC3-10
|
|
|
|
A#2 PC4-10
|
|
|
|
B2 PC5-10
|
|
|
|
C3 PC6-10
|
|
|
|
C#3 PC7-10
|
2018-09-09 18:12:13 +02:00
|
|
|
|
|
|
|
# big encoder assigned to MCP jog wheel
|
|
|
|
?CC0~ CC60~
|
|
|
|
|
|
|
|
# encoders mapped to MCP channel faders
|
|
|
|
# (MC uses pitch bends here, use 129 as step size to get full range)
|
|
|
|
CC1~ PB[129]-1
|
|
|
|
CC2~ PB[129]-2
|
|
|
|
CC3~ PB[129]-3
|
|
|
|
CC4~ PB[129]-4
|
|
|
|
CC5~ PB[129]-5
|
|
|
|
CC6~ PB[129]-6
|
|
|
|
CC7~ PB[129]-7
|
|
|
|
CC8~ PB[129]-8
|
|
|
|
# master fader (touchstrip)
|
|
|
|
CC9[] PB[129]-9
|
|
|
|
|
|
|
|
# encoders become the MCP encoders when shifted (CC16..CC23, incremental mode)
|
|
|
|
^CC1~ CC16~
|
|
|
|
^CC2~ CC17~
|
|
|
|
^CC3~ CC18~
|
|
|
|
^CC4~ CC19~
|
|
|
|
^CC5~ CC20~
|
|
|
|
^CC6~ CC21~
|
|
|
|
^CC7~ CC22~
|
|
|
|
^CC8~ CC23~
|
|
|
|
|
|
|
|
# encoder touches
|
2018-09-12 00:03:44 +02:00
|
|
|
E7 G#8
|
|
|
|
F7 A8
|
|
|
|
F#7 A#8
|
|
|
|
G7 B8
|
|
|
|
G#7 C9
|
|
|
|
A7 C#9
|
|
|
|
A#7 D9
|
|
|
|
B7 D#9
|
|
|
|
D#7 E9
|
2018-09-09 18:12:13 +02:00
|
|
|
|
|
|
|
# feedback section ########################################################
|
|
|
|
|
|
|
|
[MIDI2]
|
|
|
|
|
|
|
|
# transport
|
2018-09-12 00:03:44 +02:00
|
|
|
A7 F#5 $CC0 # reset all meters, see "meter" in the MCP feedback section below
|
|
|
|
A#7 E5
|
|
|
|
B7 F5 # Rec
|
|
|
|
D7 C5 # Cycle
|
|
|
|
G7 C#5
|
|
|
|
G#7 D5
|
|
|
|
C#7 D#5
|
2018-09-09 18:12:13 +02:00
|
|
|
|
2018-09-12 00:03:44 +02:00
|
|
|
^F7 D5
|
|
|
|
^C7 D#5
|
2018-09-09 18:12:13 +02:00
|
|
|
|
|
|
|
# SMPTE/BBT
|
2018-09-12 00:03:44 +02:00
|
|
|
F4 C#6
|
2018-09-09 18:12:13 +02:00
|
|
|
|
|
|
|
# channel left/right keys
|
2018-09-12 00:03:44 +02:00
|
|
|
?C4 E6
|
|
|
|
?C#4 A5
|
2018-09-09 18:12:13 +02:00
|
|
|
|
|
|
|
# row above grid (track/pan/send/instr)
|
2018-09-12 00:03:44 +02:00
|
|
|
E3 G#3
|
|
|
|
F#3 A3
|
|
|
|
F3 A#3
|
|
|
|
A3 B3
|
2018-09-09 18:12:13 +02:00
|
|
|
|
|
|
|
# feedback for the MC shift keys
|
2018-09-12 00:03:44 +02:00
|
|
|
A#5 A4 # Shift
|
|
|
|
B5 A#4 # Control
|
|
|
|
C6 B4 # Option
|
|
|
|
C#6 D3 # Alt/Cmd
|
2018-09-09 18:12:13 +02:00
|
|
|
|
|
|
|
# zoom (as the big encoder itself has no led, we light up the 4 leds around it
|
|
|
|
# instead; color: 4 = blue)
|
2018-09-12 00:03:44 +02:00
|
|
|
E8 C#2[4] D2[4] D#2[4] E2[4]
|
2018-09-09 18:12:13 +02:00
|
|
|
|
|
|
|
# select
|
|
|
|
# NOTE: Ardour apparently doesn't update these when changing banks.
|
2018-09-12 00:03:44 +02:00
|
|
|
?C2 G6
|
|
|
|
?C#2 G#6
|
|
|
|
?D2 A6
|
|
|
|
?D#2 A#6
|
|
|
|
?E2 B6
|
|
|
|
?F2 C7
|
|
|
|
?F#2 C#7
|
|
|
|
?G2 D7
|
|
|
|
|
|
|
|
# no feedback for encoders, only touchstrip
|
|
|
|
PB[128]{0}-9 CC9'
|
|
|
|
|
|
|
|
# MCP feedback (simply passed through, ctlra_daemon handles these
|
|
|
|
# automagically).
|
|
|
|
|
|
|
|
# rec/solo/mute
|
|
|
|
|
|
|
|
?C0[] C0
|
|
|
|
?C#0[] C#0
|
|
|
|
?D0[] D0
|
|
|
|
?D#0[] D#0
|
|
|
|
?E0[] E0
|
|
|
|
?F0[] F0
|
|
|
|
?F#0[] F#0
|
|
|
|
?G0[] G0
|
|
|
|
|
|
|
|
?G#0[] G#0
|
|
|
|
?A0[] A0
|
|
|
|
?A#0[] A#0
|
|
|
|
?B0[] B0
|
|
|
|
?C1[] C1
|
|
|
|
?C#1[] C#1
|
|
|
|
?D1[] D1
|
|
|
|
?D#1[] D#1
|
|
|
|
|
|
|
|
?E1[] E1
|
|
|
|
?F1[] F1
|
|
|
|
?F#1[] F#1
|
|
|
|
?G1[] G1
|
|
|
|
?G#1[] G#1
|
|
|
|
?A1[] A1
|
|
|
|
?A#1[] A#1
|
|
|
|
?B1[] B1
|
2018-09-09 18:12:13 +02:00
|
|
|
|
|
|
|
# meter values
|
|
|
|
?CP[] CP
|
|
|
|
|
|
|
|
# NOTE: We only report the values as we receive them here, there's no
|
|
|
|
# automatic decay of the meters like with real Mackie hardware. Thus we
|
|
|
|
# explicitly reset all meters when transport stops below. (Ardour at least
|
|
|
|
# does *not* do that automatically.) NB: We use CC0 as a macro here,
|
|
|
|
# hopefully this won't occur as real feedback?
|
|
|
|
|
|
|
|
?CC0[1] CP{0} CP{16} CP{32} CP{48} CP{64} CP{80} CP{96} CP{112}
|
|
|
|
|
|
|
|
# timecode
|
|
|
|
?CC64[] CC64
|
|
|
|
?CC65[] CC65
|
|
|
|
?CC66[] CC66
|
|
|
|
?CC67[] CC67
|
|
|
|
?CC68[] CC68
|
|
|
|
?CC69[] CC69
|
|
|
|
?CC70[] CC70
|
|
|
|
?CC71[] CC71
|
|
|
|
?CC72[] CC72
|
|
|
|
?CC73[] CC73
|