Start Free
← All guides
Engineering & Audio Tech

How SightPiano's MIDI and Audio Pipeline Is Built

The thing that makes real-time note feedback feel instant isn't a browser API — it's that the actual shipped app mostly avoids the browser for this part entirely. Here's what's really underneath it, on desktop and mobile.

1. Native MIDI, not Web MIDI

SightPiano's desktop build (Tauri) reads your keyboard through a native Rust plugin built on the midir crate — not the browser's navigator.requestMIDIAccess(). On iOS and Android (Capacitor), it's a native plugin talking to CoreMIDI and Android's android.media.midi respectively. The Web MIDI API does exist in this codebase, but only as a fallback for the local development build in an ordinary browser — that build is a developer tool and never ships to end users. What you actually install talks to hardware through the OS's own MIDI stack, not through a webpage.

2. Native audio, WebAssembly for two specific jobs

Audio playback on desktop runs through cpal, a native Rust audio library, not a browser AudioWorklet. WebAssembly genuinely is part of the stack, but for two narrower, real jobs: Verovio — the open-source engine that turns MusicXML into the rendered staff you read from — runs as a WASM web worker inside the app's embedded WebView, and AI Pianist's on-device performance rendering (a SightPiano Premium feature, for your own imported scores) runs through ONNX Runtime Web, also WASM. Score rendering and on-device AI inference are genuinely well-suited to WASM's sandboxed, portable execution model; the core audio path isn't — it stays native.

3. Local-first, no telemetry by default

MIDI parsing, score rendering, and practice evaluation all run on your device — no server round-trip needed for any of it to work. SightPiano's privacy policy is explicit that there's no analytics or telemetry unless you explicitly opt in; nothing about how the app works requires phoning home.

Feel the difference native code makes

SightPiano reads your MIDI keyboard through the OS, not a browser tab — no perceptible delay between the key you press and the note lighting up on the score.

Download SightPiano Free