Developer Preview

Build your own instrument pipes.

The RatPipe SDK lets you build real instruments that run inside RatMode — the same kind of thing Kick, Sample, Synth Mono and Synth Poly are built from. It's public, MIT-licensed, and free to build and test with today.

Developer preview since RatMode 0.1.9. You can build and play your own extension pipes in your own copy of RatMode today. There is no third-party distribution yet — you can't ship your pipe to other users yet.

What's inside

Everything to build, validate and package a pipe.

A stable C ABI

ratpipe_abi.h — the contract between your pipe and RatMode. Plain C, so any language that can export one C symbol can implement a pipe.

A C++17 base class and DSP kit

Header-only. Band-limited oscillators, a tanh-family saturation family, filters, envelopes, LFOs and a delay — clean-room, ready to build on.

An offline validator

"ratpipe validate" checks real-time safety, bounded output, denormals and NaNs, and parameter round-trips before your pipe ever runs inside RatMode.

A CLI and CMake function

"ratpipe new / validate / render / package" plus a CMake function that produces a universal .ratpipe bundle.

Two worked examples

An FM kick drum and a mono FM bass with a wobble macro, plus a project template to start from.

CI config and a Claude Code skill

Wire up validation in CI, or let an agent loop on "ratpipe validate" while it builds a pipe with you.

Requirements

macOS
11 or newer
Architecture
Universal — Apple Silicon and Intel
CMake
3.22 or newer
Language
C++17

Windows isn't supported yet. The ABI itself is platform-neutral, and Windows support is planned for later.

Your first pipe

Build it, install it, play it.

  1. 1Build your pipe against the SDK and run "ratpipe validate" until it passes.
  2. 2Run "ratpipe install" to copy the bundle into RatMode's Extensions folder.
  3. 3Turn on Developer mode in RatMode's Extensions dialog and Allow your pipe — it shows an Unverified badge.
  4. 4Use CONFIGURE, part of the paid extensions bundle, to place it into a slot and play it.

This is the short version. The real quickstart — the one that won't go stale — lives in the SDK repo's README.

How extensions are kept safe

Two modes, and nothing silent in between.

01

Normal mode

RatMode only loads extensions signed by DIVURJ. Everyday users never see unsigned code.

02

Developer mode

An opt-in toggle for people building their own pipes. Every unsigned pipe needs explicit per-pipe consent and is badged Unverified. It is not a distribution path.

03

Validated, sanitised, revocable

Extensions are checked against a binary allowlist at load, their output is sanitised inside the app, and a signed revocation list lets DIVURJ remotely stop a bad extension from loading.

Planned — curated catalogue

Getting a pipe to other users.

There's no third-party distribution yet. The plan is a curated catalogue: developers submit pipe source as a pull request, DIVURJ reviews it, and accepted pipes are built, signed and notarised by CI before shipping to users through the RatMode extensions bundle. Submission terms aren't decided yet.

FAQ

Can I share or sell my pipe?

Not yet — a curated catalogue is planned. In the meantime you can share your pipe's source; anyone with the SDK can build it themselves in Developer mode.

Is it safe to turn on Developer mode?

It's meant for developers running their own code. Extensions run inside RatMode with the same access as RatMode itself — only Allow code you built or trust.

Does my pipe keep working across RatMode updates?

The ABI is versioned, and within a major version changes are additive only.

What languages can I use?

The ABI is plain C. The SDK's base class and DSP kit are C++17, but anything that can export one C symbol can implement a pipe.

What does it cost?

The SDK is free and MIT-licensed. Building and validating with the offline host needs no licence at all. Running extensions in RatMode slots uses CONFIGURE, which is part of the paid extensions bundle.

Start building.

Clone the repo, read the README, and run "ratpipe validate" on your first pipe.