Skip to content

About

sp16plugins: an app-neutral standard for CLAP plug-ins on the SP-16, with a template, guides and a conformance kit. MIT. | hdslave Discord (MPC Sample, SP-16 & plugins): https://discord.gg/vUWnj4nGCv

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

sp16plugins

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.

Make a plug-in

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 .clap with 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 helper sp16plugins_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:

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.

The standard

  • 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 _V1 so it can be included beside screen.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/1 and /2, the C names sixteen_* and the include path <sixteen/screen.h>, which hosts and released plug-ins already use.
  • conformance/: the conformance kit. sp16plugins-check checks 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.

For host authors

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 read sp16plugins_conformance_report(): every rule your host broke, with its SPEC section;
  • run sp16plugins-check on the plug-ins you ship or test with, to see what they rely on.

Changing the standard

By pull request, as SPEC.md section 13 says.

Licence

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).

About

sp16plugins: an app-neutral standard for CLAP plug-ins on the SP-16, with a template, guides and a conformance kit. MIT. | hdslave Discord (MPC Sample, SP-16 & plugins): https://discord.gg/vUWnj4nGCv

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages