Dampers
How notes end — damper felt, its grip and timing, the two-stage release, the undamped top strings, and the halo of sympathetic resonance with the pedal down.
A damper is a felt pad resting on the strings near the keyboard end. Pressing a key lifts it; releasing the key lets it fall back and stop the sound. The sustain pedal lifts all of them at once. In the model a damper is a dashpot on the string: it adds to partial k a decay rate proportional to how much that partial moves under the pad, sin²(kπx/L) averaged over its width. The felt rests on top of the strings, so it brakes their up-and-down motion fully and their sideways motion only a little.
Dampers over time
fall_time = 15 ms, drawn slower here) and the sound dies in two stages, as on a real piano. The felt stops the strings' up-and-down motion within a fraction of a second, but only rubs against their sideways motion (horizontal = 0.03 of the rate), which leaves a quiet tail 25–40 dB down. Second note: the pedal was down, so releasing the key changes nothing until the pedal comes up. How firmly the felt grips (strength = 0.1) and how the damping grows as it settles (contact_exponent = 1.5) shape the first stage. Schematic levels.Grip
strength is how firmly the felt stops the string, against the string’s own impedance
√(T·μ). At 1 the felt’s resistance matches it: the most absorbing damper there can be. Much
harder, and the felt starts to reflect the vibration back instead of absorbing it. Real dampers
are far softer than that match. The default, 0.1, was set on the releases of a Disklavier
grand: a released note loses 15–30 dB in its first quarter of a second. At 1 the model stopped
notes two to four times too fast, and left holes in pedalled passages
(docs/release.md).
contact_exponent (1.5) shapes how the damping grows as the felt settles: with a high exponent,
a damper that only brushes the string barely stops it — which makes the half pedal usable and
note endings softer. node_floor catches the partials that have a still point right under the
pad and would otherwise escape it.
horizontal is the grip on the strings’ sideways motion: the felt only rubs against it, so
that motion gets 0.03 of the damping rate. This is what makes a released note die in two
stages, as on a real piano: a fast first drop, then a faint tail 25–40 dB down, still
heard a second later. Before 0.2.0 the dampers took everything down at one rate, and
releases sounded cut.
Which keys have dampers
Dampers across the keyboard
highest_note, D6 by default): they ring until they die on their own, and they answer every note played sympathetically. In the sustain of their top notes, eight real grands have lines at 0.7–1.4 kHz, the undamped strings ringing along; with F♯6, the figure first taken from a commercial modelled piano, the model had nothing there (docs/top_treble.md).Sympathetic resonance
With the dampers lifted, every string is free to answer the ones being played: a C3 struck with the pedal down sets ringing the strings whose partials coincide with its own — C4, G4, C5, E5… and C2 or F1 below, whose upper partials meet its fundamental. That is the halo of a pedalled piano. The undamped top strings answer always, pedal or not.
Sympathetic resonance · C3 with the pedal down
gain = 1 is that one-way physical value: on pedalled chords it matches a Disklavier grand's halo within 0.5–2.5 dB.In the application

Parameters
Dampers
Damper felt exponent
livedamper.contact_exponentHow the damping grows as the felt settles on the strings. Higher: lightly touching dampers barely stop the sound, which gives a usable half pedal and softer note endings.
The dashpot grows as contact^exponent (felt compression). With 1, half contact already gave 89 % of the full rate.
Damper fall time
livedamper.fall_timeHow quickly a damper falls back on the strings when a key is released.
Time constant (s) of the contact moving towards 1.
Highest note
rebuilddamper.highest_noteHighest key with a damper. The short top strings have none and ring until they die.
MIDI note: D6 by default, from the top notes' sustain on eight real grands (docs/top_treble.md); F#6 was taken from a commercial modelled piano.
Damper grip on sideways motion
rebuilddamper.horizontalThe felt rests on top of the strings: it stops their up-and-down motion but only rubs against the sideways one, which leaves a faint tail after the release.
Share of the damper rate the horizontal polarisation gets (first order in each coupled mode: Σ_j w_j·V_jm²).
Damper lift time
livedamper.lift_timeHow quickly a damper lifts off when a key is pressed or the pedal goes down.
Time constant (s) of the contact moving towards 0.
Node floor
rebuilddamper.node_floorSome overtones have a still point right under the damper and would escape it; the crushed felt still catches them. Higher: cleaner note endings.
Share of the full rate every partial gets at least. Set on the release of the bass (docs/release_ring.md).
Position
rebuilddamper.positionWhere the felt dampers rest on the strings, near the keyboard end. They silence a note when its key is released.
Fraction of the string length from the agraffe. A damper is a dashpot adding to partial k a decay rate proportional to sin²(kπx/L) averaged over the pad (S_k).
Damper strength
livedamper.strengthHow firmly the dampers stop the strings. Too soft and notes linger after release; too hard and the felt bounces the vibration back instead of absorbing it.
c/(2·Z0), Z0 = √(T·μ): σ_k = c/(μL)·S_k·(2Z0/(c + 2Z0))². 1 matches the string's impedance (most absorbing). S_k: mean of sin²(kπx/L) over the pad. 0.1 set on the release of a Disklavier grand's notes (docs/release.md).
Width
rebuilddamper.widthLength of string the felt pad covers.
Pad width (m) in the average of sin² (partials with a node under the pad are still damped by the rest of it).
Sympathetic resonance
Enabled
rebuildsympathetic.enabledWith the dampers lifted, the other strings vibrate in sympathy with the notes played: the halo of a pedalled piano.
One-way (Bank, Zambon & Fontana 2010): each undamped key gets listening strings driven by the bridge motion that the other keys cause; they do not move the bridge back, so it is stable for any gain.
Self cancel
rebuildsympathetic.self_cancelKeeps a key from resonating with its own vibration through the bridge.
Cancels each key's own contribution to its bridge input (already in its coupled modes).
Gain
rebuildsympathetic.gainStrength of the sympathetic resonance.
Scale on the bridge-to-string gain. 1 is the one-way physical value: on pedalled chords it matches a Disklavier grand's halo within 0.5–2.5 dB (tools/pedal_bench.py).
Max freq
rebuildsympathetic.max_freqHighest overtone of the sympathetic strings (lower: less CPU).
Listening strings run their partials below this frequency (Hz).