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
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
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)
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
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

Parameters
General
Soft pedal half blow (upright)
livehalf_blowHow 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.
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)
livemute_feltThe 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.
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
liveoutput_gain_dbOverall level, like the gain of the microphone preamp. It does not change the tone.
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
liverepetition_floorHow strong a note played again at once is, on an upright: never silent, only weaker.
Share of the hammer speed at Δt = 0 (0.5: about −8 dB).
Repetition reset time (0: grand)
liverepetition_timeAn 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.
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)
liveuna_corda_shiftWhat 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).
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
liveuna_corda_softeningHow 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.
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
livedamper.pedal_contactPedal travel at which the dampers have left the strings.
Contact = ((contact − travel)/(contact − free))^curve, clamped to 0–1.
Half-pedal curve
livedamper.pedal_curveShape of the half pedal between those two points: higher values make the dampers leave the strings sooner.
Exponent of the contact curve.
Pedal lost motion
livedamper.pedal_freeTravel of the sustain pedal before it starts lifting the dampers. Pianists rest their foot on the pedal, so a little travel does nothing.
Pedal position (CC 64, 0–1) where the contact starts dropping from 1.
Velocity
Velocity curve (soft end)
rebuildvelocity.curveShape of the velocity response: lower spreads the soft end (pianissimo quieter, more room between pp and p), 1 spreads it evenly.
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
livevelocity.vmaxSpeed 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.
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
livevelocity.vminSpeed of the hammer for the softest key press (MIDI velocity 1). Lower: a quieter, duller pianissimo.
Hammer speed = vmin·(vmax/vmin)^(t^curve), t = (velocity − 1)/126. Read at each note-on.