ADR-0008 — A standalone instrument for PC and Raspberry Pi, controlled from a phone through a web UI; no mobile app
Status: proposed (the “no mobile app” part is the maintainer’s decision, Nov 2026)
Context: Besides running as a plugin in a DAW, the instruments should run on their own on a PC or a Raspberry Pi, played from a MIDI keyboard and adjusted from a phone. An Android (or iOS) app was considered and dropped: USB MIDI and low-latency audio exist on Android (android.media.midi, AAudio), but latency varies widely across devices and cannot be guaranteed, and a separate mobile app would be a second product to maintain. The DSP core itself would build for Android without trouble (pure Rust), so this is a choice about the product, not a technical limit. For the UI, Dioxus was weighed against egui (ADR-0006): Dioxus desktop renders in a system web view and owns its event loop, which makes embedding it in a host’s plugin window fragile (especially on Linux, the maintainer’s platform); its native renderer is not mature. Dioxus’s web target, however, runs in any browser — a natural fit for a phone remote.
Decision (proposed):
- No Android or iOS app. A phone is a remote control, never the sound engine.
- A standalone instrument (
crates/standalone): the same DSP core as the plugin, with audio out throughcpal(ALSA/PipeWire/JACK, CoreAudio, WASAPI) and MIDI in throughmidir, running headless on a PC or a Raspberry Pi. - It serves a web UI over Wi-Fi: a phone, tablet or laptop opens it in a browser; parameter changes travel both ways over a WebSocket. No install on the phone. Without a network (stage, rehearsal room) the Pi runs its own Wi-Fi hotspot.
- The web UI is written with Dioxus (web target, WebAssembly) — to be confirmed by a spike; plain HTML/JS is the fallback.
- Bluetooth only as Bluetooth LE MIDI (a standard both phones and Linux/BlueZ speak) for playing and a few controllers; settings go through the web UI.
- One parameter description for every UI (
crates/params): ids, names, ranges, units, groups, which recompute class a parameter belongs to. The CLAP plugin, the egui editor, the standalone engine and the web UI all derive from it; no UI holds logic. - The in-DAW editor stays egui (ADR-0006).
Rejected alternative: Dioxus for the in-DAW editor (web view embedding in host windows, event-loop ownership; same failure mode as Rune). A native mobile app (latency variance, two more platforms to build and ship). Settings over a custom Bluetooth GATT protocol (needs an app on the phone; the web UI needs none). egui compiled to WebAssembly for the phone (possible, but touch, text input and accessibility are weaker than HTML).
Consequences: Two UIs to maintain, kept cheap by crates/params. The standalone app adds a small web server and a control protocol to secure (local network only, no remote exposure; a pairing code before changes are accepted). The Raspberry Pi has far less CPU than a desktop: the piano needs quality levels (fewer partials, fewer sympathetic strings) and likely all four cores (P-004). See Standalone and remote control.