Docs

Player

What your hands and feet drive — velocity, pedals, repetition and output level. All but the velocity curve's shape are live.

The Player page is the touch of the instrument: how a MIDI velocity becomes a hammer speed, what the three pedals do, how quickly an upright repeats a note, and the overall level. All of them but one are live: the engine applies them while you play, and in the plugin they are host parameters you can automate. The exception is the shape of the velocity curve (velocity.curve), which takes effect when the instrument is rebuilt.

From velocity to hammer speed

A MIDI keyboard sends a velocity from 1 to 127; a piano only knows how fast its hammer flies. Recording pianos map one to the other exponentially (Goebl & Bresin 2003). The model starts from that law and bends it with an exponent, curve:

vhammer = vmin · (vmax / vmin)tcurve,   t = (velocity − 1) / 126

With curve = 1 it is the recording pianos’ exponential. Below 1 it spreads the soft end: a quieter pianissimo, and more room between pp and p.

Hammer speed by velocity

0.11101326496127m/s
The default map: 0.205 m/s at velocity 1 to 5.6 m/s at 127, with curve 0.78. On this logarithmic scale an exponential would be a straight line; this one rises faster at the soft end. Velocity 60 lands at 1.28 m/s, velocity 100 at 3.2 m/s. Hover to read it.

The default was fitted on recordings of pianists playing on Disklaviers (Liang’s and MAESTRO’s performances), so a keyboard played live gets the dynamics of real fingers. A Disklavier plays notes back on another scale: within recorded performances, the level gains 1.4–1.6 times as much per velocity step as on the notes the same pianos play back. For MIDI written for that playback (files made by hand or by a program, sample sets recorded at set velocities), the Touch menu lays disklavier_playback over the instrument: 0.26–4.4 m/s with curve 0.75, fitted on the isolated notes of two Disklavier grands. recorded_performances is the default law, to select it over an instrument that sets another.

A faster hammer does not just play louder: it squeezes its felt harder, and felt stiffens the more it is squeezed, so a fortissimo is also much brighter. That is why raising vmax changes the timbre of the loudest notes, not only their level — see the hammer.

The sustain pedal

The right pedal (CC 64) lifts every damper off the strings. It is continuous: between resting and lifted there is a half pedal where the dampers only brush the strings and notes die slowly — pianists use it all the time. Three parameters shape it.

Sustain pedal · damper contact

lost motionhalf pedaldampers off00.510%25%50%75%100%contactpedal travel (CC 64)what movesdamperpedal
Contact of the dampers with the strings (1: resting, 0: lifted) against pedal travel. The first 30 % does nothing (lost motion: pedal_free); the dampers have left the strings at 60 % (pedal_contact); between the two, the half pedal, shaped by pedal_curve = 1.2. All three are live.

The defaults follow a Disklavier grand’s pedalling: at CC 64 = 64 the pedal is still a half pedal, at 96 it is fully down. How quickly a damper actually falls back or lifts, and how hard it grips, is on the Dampers page.

The soft pedal and the middle pedal

The left pedal (CC 67) works differently on a grand and on an upright, and the model does both; una_corda_shift chooses (1, a grand, by default).

Soft pedal (CC 67)

grand · from abovehammer (worn grooves)string 1 · gets (1 − s) of the forceshiftfresh felt, softerupright · from the sidedamperhammer railtravel
Left, a grand (una_corda_shift = 1): the action slides so the hammer strikes two strings of three; with the pedal at s (0–1), the first gets 1 − s of the force, and the felt that now meets the strings is unworn and softer throughout: the stiffness of its outer and its inner felt alike is multiplied by 1 − 0.6·s (una_corda_softening = 0.6). Right, an upright (una_corda_shift = 0): nothing slides, the hammers rest closer to the strings and strike slower by half_blow.

The middle pedal (CC 66) is a sostenuto on a grand: it keeps up the dampers of the keys held when it goes down. Many uprights use it instead to lower a strip of felt between hammers and strings, for practising quietly: give mute_felt a thickness and the middle pedal becomes that practice mute.

Repetition

A grand’s action has a double escapement: a key can strike again before it has come all the way up. An upright’s cannot, so a note repeated too soon after its release comes out weaker. repetition_time is that recovery time (0 on a grand), repetition_floor how strong an immediate re-strike still is.

Repetition · hammer speed of a re-strike

00.20.40.60.810 s0.03 s0.06 s0.09 s0.12 s
Share of the hammer speed for a key struck again Δt after its release, on an upright with repetition_time = 0.06 s (an estimate: uprights repeat up to about 7 notes a second, grands 14) and repetition_floor = 0.5 (about −8 dB). On a grand the curve is flat at 1.

output_gain_db is the last stage: a gain after the room, smoothed so automation never clicks. It does not change the tone.

In the application

The Player page of the Unsampled Piano interface
The Player page of the interface, default instrument. Its sketch is drawn from the current settings; hover a parameter to light up the part it acts on, click its name for the help shown below.

Parameters

General

Soft pedal half blow (upright)

live
half_blow
00.5default 0

How much quieter the left pedal of an upright plays: it moves the hammers closer to the strings, so they travel less and strike more slowly. 0 on a grand.

in the model

Hammer speed × (1 − half_blow·s), soft pedal at s. 0.1 matches a commercial modelled piano's upright (−1 dB, timbre nearly unchanged).

Practice mute felt (0: sostenuto)

live
mute_felt
06default 0 mm

The middle pedal of many uprights lowers a strip of felt between hammers and strings, for practising quietly: a muffled, felty tone. This is the strip's thickness; 0 makes the middle pedal a sostenuto, as on a grand.

in the model

While CC 66 is down, new strikes go through a strip of t mm in series with the felt: Q0 × min(1, 0.09/t), hysteresis × 3, core reached t mm later. An estimate (no reference).

Output gain

live
output_gain_db
-4020default 0 dB

Overall level, like the gain of the microphone preamp. It does not change the tone.

in the model

Applied to both channels after the room, smoothed with a 20 ms time constant so that automation does not click. Presets use it to level close and distant microphone set-ups.

Immediate re-strike speed

live
repetition_floor
01default 0.5

How strong a note played again at once is, on an upright: never silent, only weaker.

in the model

Share of the hammer speed at Δt = 0 (0.5: about −8 dB).

Repetition reset time (0: grand)

live
repetition_time
00.2default 0 s

An upright repeats a note more slowly than a grand: it lacks the grand's double escapement, so the key must come back almost all the way up before the hammer can be thrown again. A note played again sooner than this after its key's release comes out weaker. 0: a grand, no limit.

in the model

Hammer speed × (floor + (1 − floor)·smoothstep(Δt/T)), Δt from the note-off to the next note-on of the same key (0 when there was no note-off). Uprights repeat up to ≈ 7 notes/s against ≈ 14 for a grand; 0.06 s is an estimate.

Una corda shift (1 grand, 0 upright)

live
una_corda_shift
01default 1

What the left pedal does. On a grand (1) it shifts the action so that each hammer strikes one string fewer; on an upright (0) it does not shift anything, it moves the hammers closer to the strings instead (see half blow).

in the model

The first string of each bichord and trichord gets (1 − shift·s) of the hammer force, and the felt softening is applied with shift·s, for the soft pedal at s (CC 67, 0–1).

Una corda softening

live
una_corda_softening
01default 0.6

How much softer the tone gets with the left (una corda) pedal. The pedal shifts the whole action sideways: each hammer strikes one string fewer, with fresh felt that the strings have not grooved and hardened.

in the model

With the soft pedal at s (CC 67, 0–1), the first string of each bichord and trichord gets (1 − s) of the hammer force, the felt stiffness Q0 is multiplied by 1 − softening·s, and the top felt is deeper by half that (+30 % at 0.6): the hard core is reached later. Read at each strike.

Sustain pedal

Pedal lift point

live
damper.pedal_contact
0.11default 0.6

Pedal travel at which the dampers have left the strings.

in the model

Contact = ((contact − travel)/(contact − free))^curve, clamped to 0–1.

Half-pedal curve

live
damper.pedal_curve
0.34default 1.2log

Shape of the half pedal between those two points: higher values make the dampers leave the strings sooner.

in the model

Exponent of the contact curve.

Pedal lost motion

live
damper.pedal_free
00.8default 0.3

Travel of the sustain pedal before it starts lifting the dampers. Pianists rest their foot on the pedal, so a little travel does nothing.

in the model

Pedal position (CC 64, 0–1) where the contact starts dropping from 1.

Velocity

Velocity curve (soft end)

rebuild
velocity.curve
0.31.5default 0.78

Shape of the velocity response: lower spreads the soft end (pianissimo quieter, more room between pp and p), 1 spreads it evenly.

in the model

Exponent on t in the velocity map: 1 is the exponential, logarithmic map of recording pianos (Goebl & Bresin 2003); 0.75 fits two Disklavier grands (BiVib, Liang), whose level falls faster at the soft end.

Hammer speed at ff

live
velocity.vmax
18default 5.6 m/slog

Speed of the hammer for the hardest key press (velocity 127). Higher: a louder and much brighter fortissimo, since a fast hammer squeezes its felt harder.

in the model

Upper end of the velocity map (see the curve). The defaults, 0.26–4.4 m/s with curve 0.75, follow two Disklavier grands within 1–2.5 dB (tools/velocity_fit.py), and keep velocity 100 at 2.8 m/s, where the felt was set on the brightness of attack and sustain (docs/brightness.md).

Hammer speed at pp

live
velocity.vmin
0.052default 0.205 m/slog

Speed of the hammer for the softest key press (MIDI velocity 1). Lower: a quieter, duller pianissimo.

in the model

Hammer speed = vmin·(vmax/vmin)^(t^curve), t = (velocity − 1)/126. Read at each note-on.