DEV experimental 3 stars

Sample Plugin SDK

An SDK for MPC Sample plug-ins that draw their own screens under a host OS such as Melodee, with the host library and a desktop preview tool.

About

Plug-ins with their own screens on the MPC Sample, for any app or OS that runs on it and hosts plug-ins (a mod OS), and the host side to take them. MIT licensed.

The stock MPC Sample (firmware 1.4) loads effect plug-ins only, as Knob FX with six parameters and no screen. Under a mod OS a plug-in can be an instrument, show all its parameters on K1–K3 pages, and draw its own page with its own code. This SDK holds the formats for that, the code a host needs, an example, and a tool to see a screen without an MPC. It builds on inMusic's open-source MPC plug-in SDK rather than replacing it: a plug-in made with either runs on stock as before.

For What Where
Plug-in makers A plug-in draws its own screen (CLAP, VST2) docs/screens.md, include/sample_screen.h
Anyone A screen for a released plug-in, installed apart from it docs/companions.md, include/sample_companion.h
Plug-in makers, anyone Pages and a skin from data, no code docs/page-files.md
Mod OS developers The host library: screen calls, companion runtime, readers docs/hosting.md, host/
Plan and parity with inMusic's SDK docs/PLAN.md

Hosts: Melodee (also answers its earlier melodee.* IDs).

Build and test

Linux or macOS, a C++17 compiler, make:

git clone --recursive https://github.com/keremimo/sample-plugin-sdk.git
cd sample-plugin-sdk
make test

This builds the host library, sample-preview, sample-companion-helper, Screen Example and the tests for the computer it runs on, and runs them.

See a plug-in's screen:

build/sample-preview build/screen-example.clap out wheel:10 plus push k1:64

Layout

Folder
include/ the formats, plain C: copy into a plug-in or a host
host/ the host library, C++17
examples/screen-example/ Screen Example: a drive effect with its own page and strip, CLAP and VST2 in one source
examples/page-skin/ a page file with a skin
tools/preview/ sample-preview: a plug-in's screen as PNGs, a companion screen too
tools/companion-helper/ the process companion screens run in
tests/ make test
third_party/clap/ CLAP's headers (MIT), a submodule

Licence

MIT, see LICENSE. CLAP's headers are MIT (free-audio/clap). examples/page-skin/fonts/SpaceGrotesk.ttf is under the SIL Open Font License (its OFL.txt).

Something wrong or missing?

Suggest an edit on GitHub — accepted changes credit you as a contributor.