Docs

Presets

Instruments, listening set-ups and touches, the TOML files behind them, editing one while it plays, and making your own.

A preset is a small TOML file that sets some parameters and leaves every other one at the default instrument’s value. There are three kinds, and they combine:

  • Instruments — the piano itself: hammers, strings, board, tuning. Loading one keeps your listening set-up and your touch.
  • Listening — where you hear it from: the microphones and the lid, and the room. Loading one keeps the instrument.
  • Touch — how MIDI velocities become hammer speeds, laid over whatever instrument is loaded, and kept when you load another one.

So a baroque instrument, close-miked, in a small hall, played from Disklavier files is four presets on top of each other. In the interface they are the menus of the top bar: Instrument (grouped by family), one menu per listening group (Microphones, Room) and Touch. On the command line, the player’s --preset starts with an instrument file, or lays a listening or touch file over the last sound; the renderer can stack listening and touch files on top of an instrument with --listening.

What a preset looks like

# Saloon piano: strings of each unison far apart, harder felt, weaker dampers.
hardness = 3.5

[unison]
width_mid = 12.0
width_treble = 18.0

[damper]
strength = 0.03

The names are the parameter paths of the reference: hardness at the top level, damper.strength in the [damper] table, room.size as an array. To see every parameter with its default value, dump the full preset with the offline renderer (built from the source, see the command line):

unsampled-piano-render dump-preset everything.toml

A preset can also set the Simple page’s musician’s controls, in a [macros] section, each from −1 to +1. They apply on top of the preset’s own values:

[macros]
tone = 0.3     # a little brighter
space = -0.5   # less of the room

The presets shipped

Instruments

Character

Baroque 415

Lower pitch (A = 415 Hz), no stretch, softer and less nonlinear felt.

a4 = 415
hardness = 1.2
p_offset = -1.3
stretch.a_t = 0
stretch.a_b = 0
stretch.c = 0
Character

Honky tonk

Saloon piano: strings of each unison far apart, harder felt, weaker dampers. Worn dampers: 0.25 s after the key-up, C2 and C3 are only 11–13 dB down (22–31 with the default felt, 0.1), C5 and C6 19–20 (23–24); velocity 80, no room. At 0.08 they stopped notes almost as the default does.

hardness = 3.5
unison.width_mid = 12
unison.width_treble = 18
damper.strength = 0.03

Listening

Microphones

Audience lid closed

Audience microphones (1 m above the board, in front of it), lid closed down onto the case. Positions relative to the board. On an upright: 1.6 m in front of it, at the height of its top.

soundboard.lid_angle = 0
soundboard.mics_relative = true
soundboard.mics = [[0.323529, -1.230769, 1], [0.735294, -1.230769, 1]]
soundboard.mics_upright = [[0, 0.7, 1.6], [0, 0.3, 1.6]]
soundboard.mic_gain_db = 0
soundboard.mic_pattern = 1
Microphones

Close

Close miking: lid open at 35°, two microphones 40 cm above the board, over the bass and the treble parts of the bridge (closest to the references' spectral balance, docs/presence.md). Positions relative to the board. Cardioids aimed at the piano: they hear the room ≈ 5 dB less. Level: close microphones hear the piano ≈ 13 dB louder. On an upright, 40 cm in front of the board over the same parts of the bridge, the left microphone on the bass side.

soundboard.lid_angle = 35
soundboard.mics_relative = true
soundboard.mics = [[0.294118, 0.346154, 0.4], [0.705882, 0.653846, 0.4]]
soundboard.mics_upright = [[0.705882, 0.653846, 0.4], [0.294118, 0.346154, 0.4]]
soundboard.mic_gain_db = -9.6
soundboard.mic_pattern = 0.5
Microphones

Concert

Concert set-up: lid open at 35°, a pair of microphones in front of the opening (1.6 m on the calibrated board), 2 m above the board (at 1 m they sat under the lid's reflection and lost 10 dB at 2–4 kHz in the middle, docs/presence.md). Positions relative to the board. Omnidirectional pair (spaced A–B, the usual classical set-up). Level: same loudness as the earlier 1 m set-up. On an upright: 2 m in front of it, 0.2·a above the board's top (1.5 m high on a 1.05 m board), 0.6 m apart, the left one on the bass side: the same room level and direct level as a grand's set-up (docs/upright.md).

soundboard.lid_angle = 35
soundboard.mics_relative = true
soundboard.mics = [[0.323529, -1.230769, 2], [0.735294, -1.230769, 2]]
soundboard.mics_upright = [[-0.2, 0.7, 2], [-0.2, 0.3, 2]]
soundboard.mic_gain_db = 3.4
soundboard.mic_pattern = 1
Room

Concert hall

Concert hall (40 × 28 × 16 m): the default room.

room.enabled = true
room.size = [40, 28, 16]
room.piano = [6, 13, 0.9]
room.absorption_low = 0.327
room.absorption_high = 0.37
Room

Dry

No room: the instrument alone, as heard by the two microphones.

room.enabled = false
Room

Small hall

Small recording hall (12 × 8 × 5 m, lively): early echoes close and strong.

room.enabled = true
room.size = [12, 8, 5]
room.piano = [4.5, 3, 0.9]
room.absorption_low = 0.18
room.absorption_high = 0.25
Room

Studio

Treated studio (8 × 6 × 3.5 m, absorbent walls): short, discreet room.

room.enabled = true
room.size = [8, 6, 3.5]
room.piano = [2.5, 2, 0.9]
room.absorption_low = 0.45
room.absorption_high = 0.6

Touch

The default velocity law was fitted on recordings of pianists playing, so a keyboard played live gets the dynamics of real fingers. MIDI that a Disklavier plays back — files made by hand or by a program — was made for a flatter scale: choose disklavier_playback for it. Instrument’s own, at the top of the menu, goes back to the law the instrument sets.

Touch

Disklavier playback

Touch for MIDI a reproducing piano plays back (Disklavier files made by hand or by a program, sample sets recorded at set velocities): the scale fitted on BiVib's ten velocities and Liang's isolated notes (tools/velocity_fit.py, docs/bench.md). The default follows a pianist's fingers instead (recorded performances, keyboards). Applied over an instrument as a listening preset is (unsampled-piano-render --listening presets/touch/disklavier_playback.toml).

velocity.vmin = 0.26
velocity.vmax = 4.4
velocity.curve = 0.75
Touch

Recorded performances

Touch for MIDI recorded from a pianist (Disklavier performances: MAESTRO, competition and concert files; a keyboard played live): the default velocity law since 2026-10-24, kept here to select it explicitly over an instrument that sets another. Within Liang's and MAESTRO's performances the level of an onset gains 1.4–1.6 times as much per velocity step as on the scale a Disklavier plays back (presets/touch/disklavier_playback.toml). Fitted on those performances with velocity 60 kept where it was (tools/velocity_fit_pieces.py, docs/bench.md).

velocity.vmin = 0.205
velocity.vmax = 5.6
velocity.curve = 0.78

Edit while it plays

The standalone player watches its preset file: save it in your editor and the instrument is rebuilt in the background — about a tenth of a second — without cutting the notes you are holding. That makes a text editor a perfectly good voicing tool: change hardness, save, play, repeat.

Your own

Type a name beside Save in the top bar: the current settings, every parameter, are written to instruments/<name>.toml in your preset folder (Overwrite if it exists already), and the preset appears under Other in the Instrument menu. Defaults goes back to the default instrument, keeping the listening set-up and the touch.

Your preset folder is presets in the configuration folder (~/.config/unsampled-piano/presets, %APPDATA%\unsampled-piano\presets, ~/Library/Application Support/unsampled-piano/presets), unless another one is given: presets = "…" in play.toml (or --presets <folder>), else the folder of the preset file it names (or of --preset’s), else, for the standalone player, a presets folder in the current directory. Organise it like the shipped ones: instruments in instruments/<family>/, listening set-ups in listening/Microphones/ and listening/Room/, touches in touch/.

The interface — standalone and plugins alike — lists your saved presets first, then the shipped ones, read-only: beside the program or inside the bundle, or where an installer put them (ProgramData or LocalAppData on Windows, /Library/Application Support/Unsampled Piano on macOS, share/unsampled-piano on Linux). A saved preset with the name of a shipped one hides it.