Getting started
Install the standalone application or the CLAP/VST3 plugin on Windows, macOS or Linux, plug in a keyboard and play.
Unsampled Piano comes in two shapes that share the same engine and the same interface:
- the standalone application,
unsampled-piano, which opens a window, listens to your MIDI keyboard and plays through your audio interface; - the plugin, CLAP and VST3, for any DAW that hosts instruments.
Builds come from the project’s GitHub Actions and are attached to each release; the download page picks the right file for you.
Windows
The installer, unsampled-piano-setup-windows-x86_64.exe, offers three parts, each optional:
the standalone application (with a Start menu shortcut), the VST3 plugin and the CLAP plugin,
and the presets they share. Install for all users (Program Files, Common Files\VST3 and
Common Files\CLAP, presets in ProgramData\Unsampled Piano\presets) or, without administrator
rights, for yourself only (%LOCALAPPDATA%\Programs, %LOCALAPPDATA%\Programs\Common\VST3 and
\CLAP, presets in %LOCALAPPDATA%\Unsampled Piano\presets); an uninstaller comes with it.
Prefer no installer? The zip unsampled-piano-standalone-windows-x86_64.zip holds
unsampled-piano.exe and the presets beside it — it needs nothing else installed. The plugins
alone come in unsampled-piano-windows-x86_64.zip.
Output goes through WASAPI by default. The Windows build also speaks ASIO — choose it on the Audio and MIDI page, or:
unsampled-piano --host asio
With ASIO the buffer size is the one set in the driver’s control panel. In WASAPI’s shared mode the player takes the rate set for the device in the system’s sound settings; at 88.2 kHz and above it computes the piano at 44.1 or 48 kHz and upsamples, so a 96 or 192 kHz device costs no more CPU than a 48 kHz one.
macOS
Unsampled Piano.app is universal (Intel and Apple silicon) and plays through CoreAudio, with
the presets inside the bundle. It is not notarised: the first time, open it with a right
click → Open, or clear the quarantine flag from a terminal:
xattr -dr com.apple.quarantine "Unsampled Piano.app"
The plugins come in unsampled-piano-macos-universal.zip: copy Unsampled Piano.clap to
~/Library/Audio/Plug-Ins/CLAP and Unsampled Piano.vst3 to ~/Library/Audio/Plug-Ins/VST3.
Linux
The archive unsampled-piano-<version>-linux-x86_64.tar.gz holds the standalone application,
the CLAP and VST3 plugins, the presets, a menu entry and an install script. It needs PipeWire and
glibc 2.39 or later (Ubuntu 24.04, Fedora 40, Arch, or later):
tar xf unsampled-piano-*-linux-x86_64.tar.gz
cd unsampled-piano-*-linux-x86_64
./install.sh # for you: ~/.local, ~/.clap, ~/.vst3
sudo ./install.sh --system # or for every user: /usr/local, /usr/lib/clap, /usr/lib/vst3
./install.sh --uninstall (with --system if that is how it went in) removes it again.
On Arch Linux and its derivatives, install it from the AUR: unsampled-piano builds the
latest release from its source, unsampled-piano-git the latest commit.
yay -S unsampled-piano
The application becomes a node in the PipeWire graph (through its JACK API), with a stereo output, a MIDI input with sample-accurate timing and a MIDI output that mirrors what it plays. It connects itself to the default output and to the first hardware keyboard.
Building from source
It is a Rust workspace, nothing more:
git clone https://github.com/mgth/unsampled-piano
cd unsampled-piano
cargo run --release -p piano-play -- --ui
Building needs a stable Rust
toolchain, pkg-config and clang, the audio headers (ALSA, JACK and PipeWire:
libasound2-dev libjack-jackd2-dev libpipewire-0.3-dev on Debian and Ubuntu) and, for the
window, OpenGL and X11/xkbcommon (libgl-dev libxkbcommon-dev libxcursor-dev libx11-xcb-dev).
To install it properly — the binary, a menu entry that opens the interface, its icon and the
shipped presets, under ~/.local (or PREFIX=/usr/local for every user, as root):
tools/install-app.sh
The plugins for Linux come in unsampled-piano-linux-x86_64.zip, or build and install them
into ~/.clap and ~/.vst3:
cargo xtask bundle piano-plugin --release
tools/install-plugin.sh
First sound
- Plug in a MIDI keyboard before starting; the first one found is used (
--midi <name>picks another —--listshows them all). - Start the application. Opened from the Explorer or the Finder it shows the interface; from a
terminal, add
--ui. - Play. The status bar shows the number of voices and the audio thread’s load.
Too much latency? Lower the buffer: --buffer 128 (or 64 on a fast machine). Crackles? Raise it,
add voice threads, or pick a lighter CPU quality on the
Audio and MIDI page.
Notes held forever and released when you press the sustain pedal? Your pedal works the other way
round: tick Invert the sustain pedal on the same page (--invert-sustain). A keyboard that
sends on several channels can be narrowed to one (--midi-channel <n>). Playing MIDI files made
for a Disklavier rather than recorded from a pianist? Choose disklavier_playback in the Touch
menu (see presets).
Upgrading from 0.1.0
Version 0.2.0 changed the default instrument. Projects and presets saved with 0.1.0 keep the values they saved; parameters that are new in 0.2.0 take their new defaults. Everything plays 6 dB louder than in 0.1.0 at the same output gain — recorded performances now play at −33 to −37 LUFS, and the loudest chords tried peak near −2 dBFS: lower the output gain by 6 dB to keep a project’s level.
Personal defaults
Options you always use go in play.toml, in the configuration folder:
| System | Folder |
|---|---|
| Linux | ~/.config/unsampled-piano/ |
| Windows | %APPDATA%\unsampled-piano\ |
| macOS | ~/Library/Application Support/unsampled-piano/ |
# play.toml — anything the command line leaves out
device = "Scarlett 2i2"
buffer = 128
preset = "/home/me/pianos/my_grand.toml"
ui = true
The keys are those of the command line: host, device, midi,
midi_out, name, preset, presets, buffer, output_channel, gain_db, ui,
midi_channel, invert_sustain, threads, quality, full_rate, mcp (true, or an
address). Two exist
only here: theme ("dark", "light" or "system") and restore (false to start with the
default instrument instead of the last sound). The standalone application’s
Audio and MIDI page writes this file for you.