Skip to content
altstrument

mpc-sample-sdk

Tool for MPC Sample (Akai Professional)

Rust SDK for writing MPC Sample mods for firmware 1.3.0.12, which load from the SD card as a preload library and hook the stock app's buttons, pads, MIDI, screen, audio and sample objects.

by ioma8

ActiveSource: openMIT
Top view of the Akai MPC Sample held in one hand, a cream-coloured unit with a grid of 16 blue-lit pads, three knobs, a small colour display and a speaker grille
Photo: Akai Professional, manufacturer product image, via akaipro.com
Distribution
Build from source yourself
Requires stock
1.3.0.12 only
License notes
The LICENSE file is the MIT text. The repository holds no Akai firmware; the SDK reads the stock app already running on the unit.
Source
github.com https://github.com/ioma8/mpc-sample-sdk

Description

A mod is a Rust cdylib built against the crate, which finds the running app, checks it against fingerprints of firmware 1.3.0.12 and patches 22 hook sites in memory, so nothing on the unit's flash is changed. The SDK gives typed events for buttons, pads, the encoder, knobs and MIDI notes, typed access to the Sample page's selection, samples, pads, slices, trim, WAV files and the Extract command, drawing through the app's own graphics calls, taps on the four ALSA audio streams, a one-shot worker thread and virtual folders in the stock file browser. A build script cross-compiles the mod, checks its symbols and glibc use and packs the SD card autorun zip. The documentation has one short page per topic with a code example and covers an emulator loop for testing. The author's MPC Sample MiniMod is built on it.

Install notes

Add the crate from crates.io (mpc-sample-sdk 0.7) to a Rust cdylib, then run build-mod.sh with --pack and the firmware hash to produce the autorun zip for the SD card. The loader refuses to start on another firmware or when a hook site cannot be patched. Deleting the autorun folder returns the unit to stock.

Version history

mpc-sample-sdk version history
VersionDateNotes
0.7.42026-11-17
Adds hooks for the stock Save Project paint and text editor and the Sample Record button.
0.7.32026-11-17
Keeps a control button's press and release together when a mod callback is briefly unavailable.
0.7.22026-11-17
Adds virtual folders and files in the stock file browser.
0.7.02026-11-16
Adds exact slice snapshots and corrects the pad API.

Back to MPC Sample