Spec 001 — A piano made purely by physical modelling

Status

Written from the maintainer’s direction (Nov 2026). This page is the specification: no separate specification document will be folded in. Open points go to the Problem log.

Goal

A CLAP piano plugin whose sound comes only from a physical model: strings, hammer, dampers, bridge, soundboard and pedals simulated in real time; parameters measured from or fitted to recordings of real pianos. No sample playback of notes. Short recorded or synthesised noise excitations (key, hammer knock, dampers, pedal) are allowed; they excite the model, they don’t replace it (Piano 10).

The explanation is part of the deliverable

Every mechanism gets an explanatory page in the vault before or while it is built — the series Piano 00–13: what the physics is, what it does to the sound, how it is computed, how it is fitted. Pages go from the simplest model to the full one.

Requirements

  1. Playable: MIDI note on/off with velocity, sustain (CC64, continuous for half-pedalling), soft (CC67) and sostenuto (CC66) pedals.
  2. Physical mechanisms, in the stages of Piano 13: stiff lossy strings with fitted inharmonicity and decays; unisons with mode pairs; velocity-dependent hammer (precomputed, then coupled nonlinear); dampers; soundboard; sympathetic resonance; noises; phantom partials.
  3. Fitted, not hand-tuned: parameters come from the Julia fitting pipeline (Piano 12) and cross to Rust as a model file with golden vectors (ADR-0003). Licences of data and fitted parameters follow ADR-0007: the default piano is fitted from CC BY data; NC-derived models are separate downloads.
  4. Real-time: no allocation, locks or I/O on the audio thread; correct at any host sample rate and block size; CPU and latency budget below.
  5. Quality levels Ultra / High / Medium / Low and individual cost settings (Piano 14); offline rendering may switch to Ultra; adaptive quality prevents dropouts.
  6. Controls (first set): tuning (A4, stretch), unison detune, hammer hardness, strike position, decay scale, soundboard/lid character, mic position (virtual mics), sympathetic resonance amount, noise levels.
  7. Settings export/import: all user settings can be saved to a file and loaded back, also into another project or host (T-030).

GUI

The editor is specified in Spec 003 (Play and Edit views, keyboard dock, wordmark, inspector); what exists today is T-020’s outcome. Its parameter groups keep the order Tuning, Hammer, Strings, Soundboard & mics, Resonance & noises, then Output.

Budget (to be confirmed)

Target
Latency0 samples added (soundboard convolution with non-uniform partitions) or reported to the host
CPUtypical pedalled piano music on one core of a current desktop CPU, with headroom
Polyphonyall 88 keys can sound at once (one state per key, no voice stealing); dense pedalled passages within the CPU budget

Acceptance

  • Isolated notes: spectral loss against held-out recordings below a threshold to be set after the first fits; partial frequencies within a few cents; two-stage decays visible.
  • Velocity sweep: spectral centroid rises with velocity like the recordings.
  • MAESTRO excerpts rendered from MIDI are judged “piano” in blind listening, with pedalling and resonance audible.
  • clap-validator passes.

Out of scope for Spec 001

Android and iOS apps (a phone is a browser remote, ADR-0008); the standalone instrument and the web remote are a later milestone (M6). Neural or SSM components (they are Spec 002); the electric piano, Hammond organ and pipe organ (later projects after the piano, Roadmap); upright pianos; historical instruments; room reverb (the user’s reverb plugin).