Instruments
Instruments builds playable software instruments as audio plugins in Rust (CLAP, written directly with clack; VST3 and AU later through clap-wrapper). Some instruments contain a learned model — a state-space model (SSM) or similar — that is trained in Julia on recorded samples and run in Rust inside the real-time audio thread. Julia and Rust share nothing at runtime but a model file (weights + manifest) and a set of golden test vectors. This vault is the project’s design memory: one page per topic.
Status
First project: a piano made purely by physical modelling (Spec 001), explained step by step in the piano series. Then an electric piano, a Hammond organ and a pipe organ the same way; last, a synthesizer (oscillators, modulators, SSMs) as a second variant of each instrument, with a UI for editing its blocks (Roadmap). No code yet; next steps: Status.
Start here
- Status — the handover: what was last done, what comes next
- Roadmap — the two projects and their milestones
- Piano series — how a piano makes sound and how we model it, from the ideal string to the full instrument
- Overview — the system and the repository layout in one page
- Plugin formats — CLAP, VST3, AU, LV2, the Rust frameworks, and why not C
- Model pipeline — training in Julia, inference in Rust, and how the two agree
- Toolchain — the Nix flake, Julia from the system or from Nix
- Decisions — all ADRs with their status
Areas
| Area | Pages |
|---|---|
| Architecture | Overview · Plugin formats · Model pipeline · Piano model file · Testing and evaluation · Releases · Standalone and remote · Toolchain |
| Decisions | Decisions — all ADRs with their status |
| Piano (physical model) | 00 Overview · 01 Ideal string · 02 Waveguide · 03 Losses · 04 Stiffness · 05 Hammer · 06 Soundboard · 07 Unisons · 08 Nonlinear string · 09 Dampers & pedals · 10 Noises · 11 Room · 12 Fitting · 13 Real time · 14 Cost & quality levels |
| Specification | Spec 001 — physical piano · Spec 003 — piano editor · Spec 002 — synthesizer (last) |
| Planning | Status · Roadmap · Backlog · Done |
| Problems | Problem log |
| Conventions | Conventions · ADR template · P template · Task template |
| Glossary | Glossary |