DEV 10 stars v0.7.4

MPC Sample SDK

A Rust SDK for building MPC Sample mods, with typed events, audio and MIDI access, drawing tools, firmware checks and SD-card packaging.

About

A Rust SDK for building Akai MPC Sample mods.

The universal mod SDK for the Akai MPC Sample 1.3.0.12, written in Rust (edition 2024, MSRV 1.97). The SDK is an ordinary Cargo crate: a mod is a Rust cdylib, and the build script invokes cargo — no C or C++ is compiled.

Built in Rust

Rust is not a wrapper around a C library here; it is the implementation and the public API.

  • Typed events. Buttons, pads, the encoder, knobs, MIDI notes and paint calls are Rust structs and enums, not raw event pointers.
  • Typed app objects. Selections, samples, pads, slices, WAV files, effects and Extract requests have checked accessors and Option/Result errors.
  • Explicit firmware contracts. Events and owned audio have safe APIs. Raw firmware calls and UI state access are unsafe where callers must establish object lifetime, thread ownership, or exclusive access.
  • One build tool. build-mod.sh uses Cargo for the cross-build, then checks symbols, glibc and the packaged autorun zip.
  • Checked in CI-friendly ways. The crate is fmt-, clippy- (all, pedantic, cargo, warnings denied) and rustdoc-clean, and its tests run on the host.

Recent releases

  • v0.7.4 v0.7.4 — Dictation integration Nov 17, 2026
    Release on GitHub ↗
    Release notes

    Adds native Save Project paint and text editor integration, Sample Record button support, and Cargo feature selection in the build helper.

  • v0.7.3 v0.7.3 — input event ownership Nov 17, 2026
    Release on GitHub ↗
    Release notes

    Preserves control-button press/release ownership when a mod callback is temporarily unavailable, so one edge cannot be forwarded independently of its matching edge. Exposes the currently forwarded control-surface event to synchronous native callbacks, allowing mods to pair native pad releases with their originating physical surface event. Verified with SDK tests and the minimod AArch64 build.

  • v0.7.2 v0.7.2 — native browser virtual directories Nov 17, 2026
    Release on GitHub ↗
    Release notes

    Adds a public native-browser API for registering virtual directories and files, resolving entries to original paths, and observing successful file opens. Intended for SD-card browser extensions without copying audio files. Verified with 124 SDK unit tests, formatting, Clippy, rustdoc, and a minimod AArch64 emulator integration build.

Something wrong or missing on this page?

Opens GitHub's editor; your change becomes a pull request and you're credited as a contributor.