An app-neutral standard for CLAP plug-ins on the Pioneer DJ TORAIZ SP-16, and what you need to make one. A plug-in built to the standard runs in every app on the unit that hosts CLAP plug-ins the standard's way, and the same code built for a desktop loads in desktop CLAP hosts.
Start with docs/getting-started.md: copy the template, build it for your desktop and for the unit, check it, package it, and play it on the unit.
- template/: a working starter project. One
.clapwith a polyphonic instrument (voices, note ids, an envelope, tempo-locked vibrato, encoder pages, a saved state, bundled presets, its own page on the screen) and a stereo effect, a CMake helpersp16plugins_add_plugin, the toolchain file for the unit, and a script that makes the release ZIP. - toolchain/: a Docker recipe for the unit's cross toolchain (GCC for 32-bit ARM against
glibc 2.13, and
qemu-arm). - Guides, each with code from the template:
- notes.md: notes, voices, note ids, wildcards, chokes, the transport;
- parameters.md: parameters, the six encoders, gestures, flush;
- screen.md: your page on the screen, touch and the big knob, design;
- state-and-presets.md: saving, versions of your state, bundled and user presets;
- performance.md: the audio budget and how to stay inside it;
- testing-and-release.md: the checker, the unit build under qemu, the ZIP, versioning;
- licensing.md: what you may ship, and under which terms.
In short, a plug-in for the unit is a CLAP 1.2 plug-in built for 32-bit ARM (softfp, glibc 2.13 or older, static
C++ runtime, clap_entry its only export), shipped as one ZIP that unzips at the stick's root. The binary and runtime
data go under Plugins/, and the shared documentation goes under PluginDocs/. It offers clap.audio-ports,
clap.note-ports for an instrument, clap.params with
clap.remote-controls pages for the six encoders, clap.state, bundled presets through the preset-discovery factory
if it has any, and its own page through org.sixteen.screen/2 (and /1 for hosts that have only version 1) if it
draws one.
- SPEC.md: the standard (a draft): the binary, the shared folders, audio, notes, transport, parameters and the encoders, state, presets (the user-preset file format), the plug-in's screen, threads, sleep, BYPASS, versions of the standard, and the host extensions a plug-in may rely on.
- include/sixteen/screen.h:
org.sixteen.screen/2, the plug-in's own picture on the page body. Copied unchanged from freesp16's plug-in SDK (sdk/sp16-clap), MIT, its copyright notice in licenses/MIT-freesp16-sdk.txt. The "v2 plan (§10.2)" its comment names is freesp16's own plan, not a section of SPEC.md. - include/sixteen/screen-v1.h:
org.sixteen.screen/1, the first version, frozen, with its C names suffixed_V1so it can be included besidescreen.h. The id and struct layouts are the original ones, so plug-ins built with the original header are binary compatible. - The screen extension keeps the names it was published with: the ids
org.sixteen.screen/1and/2, the C namessixteen_*and the include path<sixteen/screen.h>, which hosts and released plug-ins already use. - conformance/: the conformance kit.
sp16plugins-checkchecks a plug-in against the standard; a strict test plug-in shows whether a host follows it. - docs/hosts.md: which host apps support which parts of the standard today.
The standard covers only what a plug-in sees. Each app keeps its own pages, projects and engine.
Implement SPEC.md and keep to the CLAP 1.2 thread rules (section 10, Threads and lifecycle). Then prove it with the conformance kit in conformance/:
- load
sp16plugins-conformance.clap(its four strict plug-ins) in your host's test suite, drive it as a user would, and readsp16plugins_conformance_report(): every rule your host broke, with its SPEC section; - run
sp16plugins-checkon the plug-ins you ship or test with, to see what they rely on.
By pull request, as SPEC.md section 13 says.
MIT, LICENSE, including the template and the guides. include/sixteen/screen.h keeps its own MIT notice
(licenses/MIT-freesp16-sdk.txt); the CLAP headers in third_party/clap keep theirs.
Apps and plug-ins are licensed as their authors choose (docs/licensing.md).