Akai MPC & Force Internal MIDI Controller Architecture (STM32F401 F411) - TheKikGen/MPC-LiveXplore GitHub Wiki

Comprehensive Specification: USB Topologies, Master MIDI & CC Tables, RGB Pad Mapping, Q-Link Banking & OLED Protocols


1. Hardware Architecture & USB Device Identifiers (VID / PID)

Modern Akai standalone music production centers (MPC Live, MPC Live II, MPC X, MPC One, MPC One+, MPC Key 61, MPC Key 37, and Akai Force) employ an asymmetric dual-processor computing architecture:

  1. Application Processor (Host SoC): Rockchip RK3288 (Quad-core ARM Cortex-A17 @ 1.8 GHz) or RK3399 running embedded Linux (Debian-based), rendering the graphical user interface via DRM/KMS, executing the audio synthesis/DSP engine, and managing file storage.
  2. Control Surface Microcontroller (MCU): STMicroelectronics STM32F401 (or STM32F411/STM32F412 on MPC X) ARM Cortex-M4 running bare-metal / FreeRTOS control surface firmware at 84 MHz.

The STM32 MCU manages all physical tactile hardware: velocity/pressure-sensitive pad matrices, push-buttons, rotary optical encoders, capacitive touch sensors on Q-Link knobs, status LEDs (mono, bi-color, and full RGB), and OLED parameter displays.

Communication between the Linux application processor and the STM32 microcontroller occurs strictly across an internal High-Speed USB 2.0 bus, where the MCU enumerates as a class-compliant multi-port USB-MIDI composite device.

Under normal operating conditions, the internal controller enumerates with Akai Professional's official USB Vendor ID (VID = 0x09E8). When rebooted into DFU firmware update mode, the MCU switches to STMicroelectronics' standard ROM bootloader VID/PID (0x0483:0xDF11).

+-----------------------------------------------------------------------------------+
|                        Akai Standalone Hardware (MPC / Force)                     |
|                                                                                   |
|  +-------------------------------------+   Internal USB 2.0    +---------------+  |
|  |           Host SoC                  | <===================> |   STM32 MCU   |  |
|  |    Rockchip RK3288 / RK3399         |                       |   Cortex-M4   |  |
|  |  Linux Kernel 3.10 / 5.x / 6.18-rt  |   ALSA USB-MIDI       |   @ 84 MHz    |  |
|  |  MPC Application (/usr/bin/MPC)     |                       +---------------+  |
|  +-------------------------------------+                               |          |
|         |                   |                                          |          |
|     DRM/KMS             I2S/ALSA                 +---------------------+------+   |
|         v                   v                    |                     |      |   |
|   7"/10" Display       Audio Codec          16/64 RGB Pads        Buttons   Q-Links
|   Touchscreen          (AKM / Cirrus)       LED Matrices          OLEDs     Encoders
+-----------------------------------------------------------------------------------+

1.1 Complete Hardware Platform & Identification Matrix

MPC / Force Model Internal Codename MCU Target SRAM / Flash USB Product String USB VID:PID SysEx PID Firmware DFU Path
MPC X ACV5 STM32F411 / F412 128 KB / 512 KB MPC X Controller 09E8:003A 0x3A ACV5/update.dfu
MPC Live ACV8 STM32F401CB / CC 64 KB / 256 KB MPC Live Controller 09E8:003B 0x3B ACV8/update.dfu
Akai Force ACVK / ADA2 STM32F401CB / CC 64 KB / 256 KB Akai Pro Force 09E8:0040 0x40 ACVK/update.dfu
MPC One ACVA STM32F401CB / CC 64 KB / 256 KB MPC One MIDI 09E8:0046 0x46 ACVA/update.dfu
MPC Live II ACVB STM32F401CB / CC 64 KB / 256 KB MPC Live II 09E8:0047 0x47 ACVB/update.dfu
MPC Key 61 ACVM STM32F401CB / CC 64 KB / 256 KB MPC Key 61 09E8:004B 0x4B ACVM/update.dfu
MPC One+ ACVA2 STM32F401CB / CC 64 KB / 256 KB MPC One+ 09E8:0056 0x56 ACVA2/update.dfu
MPC Key 37 ACVR STM32F401CB / CC 64 KB / 256 KB MPC Key 37 09E8:0057 0x57 ACVR/update.dfu

1.2 Internal USB Physical Hub Topologies

The Linux host operating system connects to the internal STM32 MCU over fixed USB hub topologies identified in the firmware installer scripts:

  • MPC X: /dev/snd/by-path/platform-ff500000.usb-usb-0:1.5:1.0
  • MPC Live: /dev/snd/by-path/platform-ff500000.usb-usb-0:1.6:1.0
  • MPC One: /dev/snd/by-path/platform-ff540000.usb-usb-0:1:1.0
  • MPC Live II / Force: /dev/snd/by-path/platform-ff540000.usb-usb-0:1.2:1.0
  • MPC Key 61 / Key 37: /dev/snd/by-path/platform-fc840000.usb-usb-0:1:1.0

1.3 ALSA RawMIDI Endpoints & Device-Specific Subdevice Naming

ALSA RawMIDI endpoints do not share identical names across all models. The endpoint strings are burned directly into each firmware's USB-MIDI streaming descriptors (usbd_composite.c / usb_midi.c) and reflect varying hardware DIN jack counts and legacy codebase inheritance.

Device-by-Device ALSA Endpoint Inventory:

  1. MPC Live (ACV8) & MPC Live II (ACVB):

    • hw:1,0,0 : MPC Public (Pad performance, Pad RGB SysEx)
    • hw:1,0,1 : MPC Private (Hardware buttons, LEDs, Q-Links, DFU)
    • hw:1,0,2 : MPC MIDI Port A (Physical 5-pin DIN Port A)
    • hw:1,0,3 : MPC MIDI Port B (Physical 5-pin DIN Port B)
  2. MPC One (ACVA) & MPC One+ (ACVA2): (Note: The firmware inherits and exposes legacy descriptors from the MPC Studio/Live codebase)

    • hw:1,0,0 : MPC Studio Live Public
    • hw:1,0,1 : MPC Studio Live Private
    • hw:1,0,2 : MPC Studio Live MIDI Port (Physical DIN Port A; no Port B on chassis)
  3. MPC X (ACV5): (Note: Studio flagship with 4 physical DIN outputs and 2 DIN inputs)

    • hw:1,0,0 : MPC Public
    • hw:1,0,1 : MPC Private
    • hw:1,0,2 : MPC MIDI Port A (Physical DIN Port A)
    • hw:1,0,3 : MPC MIDI Port B (Physical DIN Port B)
    • hw:1,0,4 : MPC MIDI Port C (Physical DIN Port C)
    • hw:1,0,5 : MPC MIDI Port D (Physical DIN Port D)
  4. MPC Key 61 (ACVM):

    • hw:1,0,0 : MPC Public
    • hw:1,0,1 : MPC Private
    • hw:1,0,2 : MPC MIDI Port A (Physical DIN Port A)
    • hw:1,0,3 : MPC MIDI Port B (Physical DIN Port B)
  5. MPC Key 37 (ACVR):

    • hw:1,0,0 : MPC Public
    • hw:1,0,1 : MPC Private
    • hw:1,0,2 : MPC MIDI Port A (Single physical DIN port on chassis)
  6. Akai Force (ACVK / ADA2):

    • hw:1,0,0 : Force Public (or Public)
    • hw:1,0,1 : Force Private (or Private)
    • hw:1,0,2 : Force MIDI Port (or MIDI Port)

Regardless of naming variances across firmware builds, the hardware control plane is consistently indexed:

  • Subdevice 0 (hw:X,0,0) is always the Public Port (Performance/Pads).
  • Subdevice 1 (hw:X,0,1) is always the Private Port (Hardware Switches/LEDs/OLEDs).
  • Subdevice 2+ (hw:X,0,2+) route to the physical rear DIN jacks.

2. Master Cross-Device Physical Button & LED MIDI Table

All devices share a unified hardware mapping table on hw:1,0,1 (MPC Private).

  • Button Pressed (Note On): 90 [Note] 7F (MIDI Channel 1, velocity 127)
  • Button Released (Note Off): 80 [Note] 00 or 90 [Note] 00 (MIDI Channel 1, velocity 0)
  • Button LED Control (Control Change): B0 [Note] [Status] (MIDI Channel 1, CC index = Note index)

Note: Checkmarks (✓) indicate physical presence of that switch on the chassis.

Control Label Note/CC (Hex) Note/CC (Dec) Live X One Live II Force Key 61 Key 37 One+
ENCODER PUSH 20 32 ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓
CURSOR UP 21 33 ✓
CURSOR DOWN 22 34 ✓
BANK A 23 35 ✓ ✓ ✓ ✓ ✓ ✓ ✓
BANK B 24 36 ✓ ✓ ✓ ✓ ✓ ✓ ✓
BANK C 25 37 ✓ ✓ ✓ ✓ ✓ ✓ ✓
BANK D 26 38 ✓ ✓ ✓ ✓ ✓ ✓ ✓
BANK E 27 39 [1] ✓ ✓ [1] ✓ ✓ ✓
BANK F 28 40 [1] ✓ ✓ [1] ✓ ✓ ✓
BANK G 29 41 [1] ✓ ✓ [1] ✓ ✓
BANK H 2A 42 [1] ✓ ✓ [1] ✓ ✓ ✓
NOTE REPEAT 2B 43 ✓ ✓ ✓ ✓ ✓ ✓ ✓
OCTAVE DOWN 2C 44 ✓
ERASE 2D 45 ✓ ✓ ✓ ✓ ✓
OCTAVE UP 2E 46 ✓ ✓
FULL LEVEL ALT 2F 47 ✓ ✓ ✓ ✓
SHIFT 31 49 ✓ ✓ ✓ ✓ ✓ ✓
NUMPAD 0 / F1 32 50 ✓ ✓ ✓
NUMPAD 1 / F2 33 51 ✓ ✓
MAIN 34 52 ✓ ✓ ✓ ✓ ✓ ✓ ✓
TAP TEMPO 35 53 ✓ ✓ ✓ ✓ ✓ ✓ ✓
PLUS (+) 36 54 ✓ ✓ ✓ ✓ ✓ ✓
MINUS (-) 37 55 ✓ ✓ ✓ ✓ ✓ ✓
ZOOM / F3 38 56 ✓
NUMPAD DOT 39 57 ✓ ✓
WINDOW / F4 3A 58 ✓ ✓
PREV / F5 3B 59 ✓ ✓
NEXT / F6 3C 60 ✓ ✓ ✓
CURSOR LEFT 3D 61 ✓ ✓
CURSOR RIGHT 3E 62 ✓ ✓
NUMPAD ENTER 3F 63 ✓ ✓ ✓
F-KEY 1 40 64 ✓ ✓ ✓
F-KEY 2 41 65 ✓ ✓ ✓
F-KEY 3 42 66 ✓ ✓
F-KEY 4 43 67 ✓ ✓ ✓ ✓ ✓
F-KEY 5 44 68 ✓ ✓
FULL LEVEL 45 69 ✓ ✓ ✓ ✓
16 LEVEL 46 70 ✓ ✓ ✓ ✓
SAMPLE EDIT 47 71 ✓ ✓ ✓
PROGRAM EDIT 48 72 ✓
REC ARM 49 73 ✓ ✓ ✓ ✓
UNDO 4A 74 ✓ ✓ ✓
STEP SEQ 4B 75 ✓ ✓ ✓
CHORD / MUTE 4C 76 ✓ ✓
SOLO 4D 77 ✓
NEXT SEQ 4E 78 ✓ ✓
STOP 4F 79 ✓ ✓ ✓
PLAY 50 80 ✓ ✓ ✓ ✓ ✓
PLAY START 51 81 ✓ ✓ ✓ ✓ ✓
BAR FORWARD 52 82 ✓ ✓ ✓ ✓
BAR BACKWARD 53 83 ✓ ✓ ✓
AUTOMATION READ 57 87 ✓ ✓
SEEK BWD 56 86 ✓ ✓
REC 5D 93 ✓ ✓ ✓
OVERDUB 5E 94 ✓ ✓ ✓
QLINK TOUCH 1 64 100 ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓
QLINK TOUCH 2 65 101 ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓
QLINK TOUCH 3 66 102 ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓
QLINK TOUCH 4 67 103 ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓
QLINK TOUCH 5 68 104 ✓ ✓
QLINK TOUCH 6 69 105 ✓ ✓
QLINK TOUCH 7 6A 106 ✓ ✓
QLINK TOUCH 8 6B 107 ✓ ✓
QLINK TOUCH 9 6C 108 ✓
QLINK TOUCH 10 6D 109 ✓
QLINK TOUCH 11 6E 110 ✓
QLINK TOUCH 12 6F 111 ✓
QLINK TOUCH 13 70 112 ✓
QLINK TOUCH 14 71 113 ✓
QLINK TOUCH 15 72 114 ✓
QLINK TOUCH 16 73 115 ✓
QLINK SELECT 74 116 ✓ ✓ ✓ ✓ ✓ ✓
TOUCH STRIP 75 117 ✓
COPY 7A 122 ✓ ✓ ✓ ✓ ✓
MENU 7B 123 ✓ ✓ ✓ ✓ ✓
TIME CORRECT 7D 125 ✓ ✓ ✓ ✓
PAD MUTE 7E 126 ✓ ✓
TRACK MUTE 7F 127 ✓ ✓ ✓

[1] On models with 4 physical bank buttons (MPC Live), SHIFT + BANK A/B/C/D accesses software Banks E, F, G, and H.

2.1 Continuous Rotary Encoders & Q-Link Turn Messages (Control Change)

In addition to capacitive touch sensing, all rotary optical encoders transmit signed relative Control Change messages on MIDI Channel 1 over hw:1,0,1 (MPC Private).

  • Clockwise (CW) Turn: Value 0x01 (+1 tick, increasing to 0x02 or 0x03 during fast rotation).
  • Counter-Clockwise (CCW) Turn: Value 0x7F (-1 tick in 7-bit two's complement, decreasing to 0x7E or 0x7D during fast rotation).
Encoder CC (Hex) CC (Dec) Live X One Live II Force Key 61 Key 37 One+
DATA JOG WHEEL 60 96 ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓
QLINK 1 TURN 10 16 ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓
QLINK 2 TURN 11 17 ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓
QLINK 3 TURN 12 18 ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓
QLINK 4 TURN 13 19 ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓
QLINK 5 TURN 14 20 ✓ ✓
QLINK 6 TURN 15 21 ✓ ✓
QLINK 7 TURN 16 22 ✓ ✓
QLINK 8 TURN 17 23 ✓ ✓
QLINK 9 TURN 18 24 ✓
QLINK 10 TURN 19 25 ✓
QLINK 11 TURN 1A 26 ✓
QLINK 12 TURN 1B 27 ✓
QLINK 13 TURN 1C 28 ✓
QLINK 14 TURN 1D 29 ✓
QLINK 15 TURN 1E 30 ✓
QLINK 16 TURN 1F 31 ✓

2.2 Virtual Q-Link Banking Architecture (Devices with 4 and 8 Knobs)

While the flagship MPC X houses 16 individual physical rotary encoders with dedicated OLED mini-displays, all other MPC devices (Live, Live II, One, One+, Key 61, Key 37) possess only 4 physical Q-Link knobs, and the Akai Force features 8 physical Q-Link knobs.

How the 4-Knob Architecture Operates:

  1. Hardware Layer (STM32 MCU): The microcontroller firmware has no concept of virtual banks or parameter pages. It only monitors its 4 physical optical encoders and 4 capacitive touch pins:
    • Touching any knob always transmits Note On/Off 0x64, 0x65, 0x66, or 0x67 (Notes 100 to 103).
    • Rotating any knob always transmits relative CC 0x10, 0x11, 0x12, or 0x13 (CC 16 to 19).
  2. Software Virtual Matrix Layer (Row16by1QLinks in /usr/bin/MPC): The Linux host application maintains an internal virtual matrix of $4 \text{ Banks} \times 4 \text{ Knobs} = 16 \text{ Virtual Q-Links}$:
    • The physical Q-LINK button (0x74 / 116) serves as the hardware bank selector.
    • Successive presses cycle through 4 internal banks ($0 \rightarrow 1 \rightarrow 2 \rightarrow 3 \rightarrow 0$):
      • Bank 0 (Q-Links 1 to 4): Physical CC 16..19 map to Virtual Parameters 1..4.
      • Bank 1 (Q-Links 5 to 8): Physical CC 16..19 map to Virtual Parameters 5..8 (equivalent to CC 20..23 on MPC X).
      • Bank 2 (Q-Links 9 to 12): Physical CC 16..19 map to Virtual Parameters 9..12 (equivalent to CC 24..27 on MPC X).
      • Bank 3 (Q-Links 13 to 16): Physical CC 16..19 map to Virtual Parameters 13..16 (equivalent to CC 28..31 on MPC X).
  3. Capacitive Touch Heads-Up Display (HUD): Because 4-knob devices lack dedicated OLED mini-screens, touching any metal knob (without turning it) emits Note On 0x64..0x67. The Linux UI detects this touch event and instantaneously renders an animated, translucent Q-Link HUD Overlay on the main 7-inch touch screen, displaying the parameter label, unit, and precise value ring without altering the parameter value.
  4. Q-Link Assignment Modes:
    • Screen / Contextual Mode: Automatically maps the 4 knobs to whichever 4 editable controls are currently visible on the active touchscreen page.
    • Project Mode: Fixed parameter bindings saved at the project level.
    • Program Mode: Parameters assigned to the active synthesizer, drum kit, or keygroup.
    • Pad Parameter Mode: Maps knobs to parameters of the last struck pad.
    • Long-pressing the Q-LINK button (0x74 held down) opens the full-screen assignment matrix.
  5. Akai Force 8-Knob Banking: The Akai Force features 8 physical knobs and 8 physical OLED screens arranged horizontally. It operates across 2 banks of 8 knobs ($2 \times 8 = 16$ virtual parameters). Toggling the KNOBS button (0x01) switches between Bank 1 (Knobs 1..8, CC 16..23) and Bank 2 (Knobs 9..16, CC 24..31), simultaneously re-streaming all 8 OLED screens via SysEx 0x0B.
  6. Direct 16-Knob Control via MIDI Injection (tkgl_anyctrl): Because /usr/bin/MPC natively listens for CC 16 through 31 on hw:1,0,1, injecting external MIDI messages with CC 20 to 31 directly into the Private port allows controlling all 16 virtual Q-Links simultaneously from an external controller, completely bypassing the manual bank switching button.

3. Button LED Control & Status Values (Control Change)

All button LEDs are driven by sending Control Change (0xB0) messages on hw:1,0,1 (MPC Private). The CC index is strictly identical to the button's hexadecimal note identifier.

3.1 Status Values (Payload)

  • 00 = LED Off
  • 01 = LED On in Dim mode (Low power) / Solid Red
  • 02 = LED Flashing (Blink rate synchronized with internal timer) / Solid Green
  • 03 = LED On at Full Brightness / Solid Yellow-Amber

3.2 Shell Examples via amidi

# Illuminate PLAY button (0x50) at maximum brightness
amidi -p hw:1,0,1 -S "B0 50 03"

# Set MAIN button (0x34) to dim illumination
amidi -p hw:1,0,1 -S "B0 34 01"

# Extinguish MENU button (0x7B)
amidi -p hw:1,0,1 -S "B0 7B 00"

# Multi-LED macro: Arm REC (0x5D), OVERDUB (0x5E), set STOP (0x4F) and PLAY (0x50)
amidi -p hw:1,0,1 -S "B0 5D 03 B0 5E 03 B0 4F 01 B0 50 01"

4. Pad RGB LED Color Management (SysEx 0x65 & 0x64)

The 16 velocity-sensitive pads are illuminated by high-efficiency RGB LEDs controlled over hw:1,0,0 (MPC Public).

4.1 Single Pad RGB Color Framing (Opcode 0x65)

$$\text{F0 47 00 } [\text{PID}] \ \text{65 00 04 } [\text{PadIndex}] \ [\text{Red}] \ [\text{Green}] \ [\text{Blue}] \ \text{F7}$$

  • [PID]: Device Product ID (e.g., 3B for MPC Live, 3A for MPC X, 46 for MPC One).
  • [PadIndex]: Pad identifier from 00 (Pad 1, bottom-left) to 0F (Pad 16, top-right).
  • [Red], [Green], [Blue]: 7-bit color intensities from 0x00 (0) to 0x7F (127).
# Set Pad 1 (Index 00) to Bright Red on MPC Live (PID 3B)
amidi -p hw:1,0,0 -S "F0 47 00 3B 65 00 04 00 7F 00 00 F7"

# Set Pad 16 (Index 0F) to Cyan (Green + Blue)
amidi -p hw:1,0,0 -S "F0 47 00 3B 65 00 04 0F 00 7F 7F F7"

# Turn off Pad 5 (Index 04)
amidi -p hw:1,0,0 -S "F0 47 00 3B 65 00 04 04 00 00 00 F7"

4.2 Batch Pad RGB Refresh (Opcode 0x64)

To prevent bus saturation when initializing scenes, Opcode 0x64 transmits the RGB values for all 16 pads (or 64 pads on Akai Force) in a single contiguous burst: $$\text{F0 47 00 } [\text{PID}] \ \text{64 } [\text{LenH}] \ [\text{LenL}] \ [R_0 \ G_0 \ B_0 \dots R_{N-1} \ G_{N-1} \ B_{N-1}] \ \text{F7}$$


5. Q-Link OLED Displays (MPC X / Force) (SysEx 0x0B)

The MPC X and Akai Force feature sixteen $128 \times 32$ monochrome OLED sub-displays (or 8 displays on Force) dedicated to the Q-Link rotary encoders.

5.1 Protocol Framing

$$\text{F0 47 00 } [\text{PID}] \ \text{0B } [\text{LenH}] \ [\text{LenL}] \ [\text{DisplayID}] \ [\text{StartY}] \ [\text{EndY}] \ [\text{StartX}] \ [\text{EndX}] \ [\text{PackedBitstream}\dots] \ \text{F7}$$

  • [DisplayID]: Target OLED display index (0 to 15 on MPC X, 0 to 7 on Force).
  • StartY, EndY: Vertical coordinate limits (0 to 31).
  • StartX, EndX: Horizontal coordinate limits (0 to 127).
  • Packed Bitstream: Raw 1-bit monochrome bitmap packed into 7-bit MIDI bytes (MSB-first).

5.2 7-Bit MSB-First Compression Algorithm

Because MIDI System Exclusive forbids bytes with the most significant bit set ($> \text{0x7F}$), the continuous 512-byte bitmap ($128 \times 32 / 8$) is re-sliced into 7-bit chunks:

  1. Concatenate all 512 bytes into a 4096-bit binary string.
  2. Pad trailing zeroes until the length is divisible by 7 (yielding 4102 bits).
  3. Split into 586 7-bit integers ($0 \le \text{byte} \le 127$).
  4. Prepend coordinates and calculate the 14-bit length header: $$\text{LenH} = (\text{TotalLength} \gg 7) \ & \ 0x7F, \quad \text{LenL} = \text{TotalLength} \ & \ 0x7F$$

6. OLED Tool & 'printf_oled' Engine (mpc_oled_utils.py)

The standalone Python utility MPC-391/mpc_oled_utils.py provides high-level text formatting, parameter gauges, and image rendering for the OLED screens.

6.1 Command-Line Usage (CLI)

# 1. 'printf_oled' : Format parameter with horizontal gauge at 75%
python3 MPC-391/mpc_oled_utils.py printf 3A 0 "CUTOFF" "2.45 kHz" --bar 75

# 2. 'printf_oled' with inverted video (Q-Link active/selected state)
python3 MPC-391/mpc_oled_utils.py printf 3A 0 "RESONANCE" "45 %" --bar 45 --invert

# 3. Simple centered status message
python3 MPC-391/mpc_oled_utils.py printf 3A 0 "LATCH ON"

# 4. Direct transmission to hardware via ALSA 'hw:1,0,1' (--send flag)
python3 MPC-391/mpc_oled_utils.py printf 3A 0 "VOLUME" "-3.5 dB" --bar 80 --send

# 5. Upload a 128x32 PNG/BMP image
python3 MPC-391/mpc_oled_utils.py image 3A 0 logo.png --send

# 6. Clear display (pure black)
python3 MPC-391/mpc_oled_utils.py clear 3A 0 --send

6.2 Python Library Integration (import mpc_oled_utils)

from mpc_oled_utils import printf_oled, clear_oled, build_oled_sysex

# Update Q-Link #0 on MPC X (PID 3A)
sysex_bytes, hex_str, amidi_cmd = printf_oled(
    pid_hex="3A",      # 3A = MPC X, 40 = Force
    display_id=0,      # Q-Link index 0 to 15
    title="ATTACK",    # Top parameter label
    value="15 ms",     # Primary numerical value
    bar=30.0,          # Progress meter percentage (0 to 100)
    invert=False,      # Video polarity (False = black background, True = white)
    send=False,        # Set to True to execute 'amidi' directly
    port="hw:1,0,1"
)

7. Exhaustive Device-Specific Specifications & Key Mapping


7.1 MPC X (ACV5)

  • Microcontroller: STMicroelectronics STM32F411 / STM32F412 (ARM Cortex-M4 @ 84 MHz, 128 KB SRAM, 512 KB Flash).
  • Flash Base Address: 0x0800C000 (Firmware size: 212,992 bytes / 208 KB).
  • USB Product String: MPC X Controller (VID 0x09E8, PID 0x003A, SysEx PID 0x3A).
  • Internal USB Path: /dev/snd/by-path/platform-ff500000.usb-usb-0:1.5:1.0.
  • Dedicated Hardware Features:
    • 16 physical rotary encoders with capacitive touch (0x64..0x73) and relative turn (CC 0x10..0x1F).
    • 16 individual $128 \times 64$ monochrome OLED sub-displays driven via SysEx Opcode 0x0B.
    • 4 physical DIN MIDI outputs (Ports A, B, C, D) and 2 DIN MIDI inputs, exposing 6 ALSA subdevices (hw:1,0,0 to hw:1,0,5).
    • Dedicated numeric keypad buttons (0x32..0x3F).

7.2 MPC Live (ACV8)

  • Microcontroller: STMicroelectronics STM32F401CB / CC (ARM Cortex-M4 @ 84 MHz, 64 KB SRAM, 256 KB Flash).
  • Flash Base Address: 0x08008000 (Firmware size: 98,304 bytes / 96 KB).
  • USB Product String: MPC Live Controller (VID 0x09E8, PID 0x003B, SysEx PID 0x3B).
  • Internal USB Path: /dev/snd/by-path/platform-ff500000.usb-usb-0:1.6:1.0.
  • Dedicated Hardware Features:
    • 4 physical rotary encoders with touch (0x64..0x67) and turn (CC 0x10..0x13).
    • Physical Q-LINK bank toggle button (0x74 / 116).
    • Integrated lithium-ion battery fuel gauge monitoring reporting over I2C/SMBus.
    • 2 physical DIN MIDI inputs and 2 DIN outputs (hw:1,0,0 to hw:1,0,3).

7.3 MPC Live II (ACVB)

  • Microcontroller: STMicroelectronics STM32F401CB / CC (ARM Cortex-M4 @ 84 MHz, 64 KB SRAM, 256 KB Flash).
  • Flash Base Address: 0x08008000 (Firmware size: 98,304 bytes / 96 KB).
  • USB Product String: MPC Live II (VID 0x09E8, PID 0x0047, SysEx PID 0x47).
  • Internal USB Path: /dev/snd/by-path/platform-ff540000.usb-usb-0:1.2:1.0.
  • Dedicated Hardware Additions over Live 1:
    • Added physical buttons: MUTE (0x4C), NEXT SEQ (0x4E), PAD MUTE (0x7E), TRACK MUTE (0x7F), STEP SEQ (0x4B), TIME CORRECT (0x7D).
    • Headphone jack insertion switch detection triggering internal speaker mute relay.

7.4 MPC One (ACVA) & MPC One+ (ACVA2)

  • Microcontroller: STMicroelectronics STM32F401CB / CC (64 KB SRAM, 256 KB Flash).
  • Flash Base Address: 0x08008000 (Firmware size: 98,304 bytes / 96 KB).
  • USB Product String: MPC One MIDI (0x0046, PID 0x46) / MPC One+ (0x0056, PID 0x56).
  • Internal USB Path: /dev/snd/by-path/platform-ff540000.usb-usb-0:1:1.0.
  • ALSA Endpoint Identity: Inherits legacy descriptor strings MPC Studio Live Public, MPC Studio Live Private, MPC Studio Live MIDI Port.
  • Chassis I/O: 1 physical DIN MIDI input and 1 DIN output (exposing 3 ALSA subdevices hw:1,0,0 to hw:1,0,2).
  • Dedicated Hardware Buttons: Dense 31-button layout including GRID VIEW (0x32), BAR FWD/BWD (0x52/0x53), AUTOMATION READ (0x57), and SEEK BWD (0x56).

7.5 MPC Key 61 (ACVM)

  • Microcontroller: STMicroelectronics STM32F401CB / CC (64 KB SRAM, 256 KB Flash).
  • Flash Base Address: 0x08008000 (Firmware size: 98,304 bytes / 96 KB).
  • USB Product String: MPC Key 61 (VID 0x09E8, PID 0x004B, SysEx PID 0x4B).
  • Internal USB Path: /dev/snd/by-path/platform-fc840000.usb-usb-0:1:1.0.
  • Dedicated Hardware Features:
    • 61-key semi-weighted keybed with aftertouch (Channel Pressure 0xD0 and Poly Key Pressure 0xA0).
    • Hardware Pitch Bend Wheel and Modulation Wheel (CC 1).
    • Assignable capacitive Touch Strip emitting position on Note/CC 0x75 (117).
    • Keybed octave transposition buttons OCTAVE DOWN (0x2C) and OCTAVE UP (0x2E).

7.6 MPC Key 37 (ACVR)

  • Microcontroller: STMicroelectronics STM32F401CB / CC (64 KB SRAM, 256 KB Flash).
  • Flash Base Address: 0x08008000 (Firmware size: 98,304 bytes / 96 KB, internal version marker v3.3).
  • USB Product String: MPC Key 37 (VID 0x09E8, PID 0x0057, SysEx PID 0x57).
  • Internal USB Path: /dev/snd/by-path/platform-fc840000.usb-usb-0:1:1.0.
  • Dedicated Hardware Features:
    • Directional navigation cluster: CURSOR UP (0x21), CURSOR DOWN (0x22), CURSOR LEFT (0x3D), CURSOR RIGHT (0x3E).
    • Integrated numpad keys (0x32..0x3F) for direct numeric parameter input.
    • 1 physical DIN MIDI input and 1 DIN output (hw:1,0,0 to hw:1,0,2).

7.7 Akai Force (ACVK / ADA2) — Complete Button & Matrix Specification

The Akai Force uses a clip-launching workflow modeled after Ableton Push and APC-series controllers. The physical button layout is radically different from traditional MPC hardware.

  • Microcontroller: STMicroelectronics STM32F401CB / CC (ARM Cortex-M4 @ 84 MHz, 64 KB SRAM, 256 KB Flash).
  • Firmware Flash Base: 0x08008000 (Firmware size: 98,304 bytes / 96 KB).
  • USB Product String: Akai Pro Force (VID 0x09E8, PID 0x0040, SysEx PID 0x40).
  • Internal USB Path: /dev/snd/by-path/platform-ff540000.usb-usb-0:1.2:1.0.
  • ALSA Endpoints: Force Public (hw:1,0,0), Force Private (hw:1,0,1), Force MIDI Port (hw:1,0,2).

Akai Force Complete Hardware Control Surface Mapping (Private Port hw:1,0,1):

Force Button Name Note/CC (Hex) Note/CC (Dec) Functional Category Description
NAVIGATE 00 0 Navigation Displays clip matrix overview
KNOBS 01 1 Mode Selector Toggles Q-Link bank mode (Bank 1: 1-8, Bank 2: 9-16)
MENU 02 2 Navigation Opens Main System Menu
MATRIX 03 3 View Mode Switches to $8 \times 8$ Clip Matrix view
NOTE 04 4 Pad Mode Switches pads to scales/notes performance mode
MASTER 05 5 Track Control Selects Master output channel
CLIP 09 9 View Mode Opens Clip editor view
MIXER 0B 11 View Mode Opens Full Audio Mixer view
MUTE 0C 12 Track Mode Assigns lower track buttons to Mute mode
SOLO 0D 13 Track Mode Assigns lower track buttons to Solo mode
REC ARM 0E 14 Track Mode Assigns lower track buttons to Record Arm mode
CLIP STOP 0F 15 Track Mode Assigns lower track buttons to Stop Clip mode
UNDO 20 32 Edit / Utility Reverses last edit action
DELETE 21 33 Edit / Utility Erases selected clips, notes, or tracks
COPY 22 34 Edit / Utility Duplicates selected clip or sequence
SELECT 23 35 Modifier Select modifier for clips without launching
EDIT 24 36 Edit / Utility Opens contextual clip/sample edit dialog
ARP 25 37 Performance Toggles arpeggiator engine
TAP TEMPO 26 38 Timing Tap tempo pulse
METRONOME 27 39 Timing Metronome click toggle
LAUNCH 1 (Scene 1) 38 56 Scene Launch Launches horizontal Scene row 1
LAUNCH 2 (Scene 2) 39 57 Scene Launch Launches horizontal Scene row 2
LAUNCH 3 (Scene 3) 3A 58 Scene Launch Launches horizontal Scene row 3
LAUNCH 4 (Scene 4) 3B 59 Scene Launch Launches horizontal Scene row 4
LAUNCH 5 (Scene 5) 3C 60 Scene Launch Launches horizontal Scene row 5
LAUNCH 6 (Scene 6) 3D 61 Scene Launch Launches horizontal Scene row 6
LAUNCH 7 (Scene 7) 3E 62 Scene Launch Launches horizontal Scene row 7
LAUNCH 8 (Scene 8) 3F 63 Scene Launch Launches horizontal Scene row 8
PLAY 4D 77 Transport Starts sequencer playback
STOP 4E 78 Transport Stops playback
REC 4F 79 Transport Enables sequencer recording
OVERDUB 50 80 Transport Overdubs events into active clips
STOP ALL CLIPS 51 81 Transport Stops all currently playing clips
LAUNCH 52 82 Transport Scene launch trigger
STEP SEQ 53 83 View Mode Opens Step Sequencer editor
XYFX 54 84 Performance Opens touch XYFX performance screen
SHIFT 7A 122 Modifier Shift modifier layer
QLINK TOUCH 1..8 64..6B 100..107 Q-Link Touch Capacitive touch sensors for Knobs 1 through 8
QLINK 1..8 TURN 10..17 16..23 Q-Link Rotation Relative turn (CC 16..23, CW=0x01, CCW=0x7F)

64-Pad RGB Clip Launching Matrix:

  • Matrix Layout: 8 columns $\times$ 8 rows = 64 velocity and pressure-sensitive RGB pads.
  • Musical Note Mapping: Mapped across MIDI Notes 0x36 (54) to 0x75 (117) on Subdevice 0 (hw:1,0,0 - Force Public).
  • Batch RGB SysEx Refresh (Opcode 0x64): Refreshes all 64 pads in a single contiguous SysEx packet ($64 \times 3 = 192$ color bytes): $$\text{F0 47 00 40 64 } [\text{LenH}] \ [\text{LenL}] \ [R_0 \ G_0 \ B_0 \dots R_{63} \ G_{63} \ B_{63}] \ \text{F7}$$
  • 8 OLED Sub-Displays: Driven via SysEx Opcode 0x0B targeting DisplayID values 0 through 7.
  • Hardware Crossfader: Physical A/B crossfader potentiometer connected to the STM32 ADC, transmitting continuous Control Change position data on the Private port.

8. Specific Key Combinations & Undocumented Hardware Functions

Function / Opcode Affected Models Implementation Details
SysEx 0x72 (Trigger DFU) All Models Transmitting F0 47 00 [PID] 72 00 00 F7 on hw:1,0,1 commands the MCU to write a persistent token in RTC backup RAM and trigger SCB->AIRCR = 0x05FA0004 to reset into ST ROM DFU mode (0483:DF11).
SysEx 0x5A (Pad Calibration) All Models Uploads 32-byte ADC sensitivity curves, trigger thresholds, and crosstalk cancellation matrices to the pad DSP filter.
SysEx 0x74 (Diag ADC Stream) All Models Factory test mode: the MCU streams raw, uncalibrated 12-bit ADC pressure readings across all 16 pad sensors for assembly line calibration.
XTEA Authentication (0x080168A0) All Models 32-round Feistel cipher (delta = 0x9E3779B9). The Linux application exchanges a 64-bit nonce with the MCU to verify authentic inMusic silicon before enabling analog audio paths.
Hardware Burn-In Mode MPC X (ACV5) Powering on while holding PLUS (0x36) + MINUS (0x37) cycles all 16 OLED screens with checkerboard patterns and illuminates all RGB LED channels simultaneously.
Bank E..H Shift Access MPC Live / One On devices lacking dedicated physical buttons for Banks E through H, holding SHIFT (0x31) while pressing BANK A..D (0x23..0x26) activates software Banks E, F, G, and H.
Note Repeat Latch All Models Holding SHIFT (0x31) + NOTE REPEAT (0x2B) toggles Note Repeat into continuous Latch mode.
Direct Grid View Jump All Models Pressing SHIFT (0x31) + MAIN (0x34) bypasses mode menus and opens the event Grid Editor directly.