Piano 05 — The hammer: why loud notes are brighter

Builds on

What the pianist controls

The action throws the hammer and lets go (escapement) a few millimetres before the string. From then on the hammer flies freely: the pianist controls one number per note, the hammer velocity at impact (roughly 0.5–6 m/s from pp to ff). MIDI velocity is a mapping of that number. Everything else — loudness and timbre — follows from the physics of the impact.

The felt is a nonlinear spring

A hammer is a wooden core covered with layers of compressed wool felt, mass from about 11 g in the bass to about 5 g in the treble. Felt gets stiffer the more it is compressed. The standard model (Hall; Chaigne & Askenfelt) is a power law:

where is the hammer position, the string at the strike point, (no force once they separate), the felt stiffness, and the exponent typically between 2 and 3.5. The force is applied to the string around (spread over the hammer’s width, about a centimetre).

Hysteresis. Real felt pushes back less on the way out than on the way in. Stulov’s model adds a relaxation term, ; it makes the pulse asymmetric and slightly changes the spectrum. Start without it.

Why velocity changes timbre

  • The hammer stays on the string for about 1–4 ms (longest in the bass). A force pulse of duration has little energy above roughly : the hammer acts as a low-pass filter on the ideal impulse of page 01.
  • Because the felt stiffens with compression (), a faster hammer compresses it more, the contact gets shorter and sharper, and the cutoff moves up. A ff note is therefore not a louder pp note but a brighter one: its spectral centroid rises with velocity. A model where velocity only scales amplitude sounds wrong immediately.
  • In the treble the wave reflected from the near end returns to the hammer while it is still in contact and can push it off early or cause a second contact; this shapes treble attacks. A coupled simulation gets this for free; a precomputed excitation doesn’t.

Two ways to compute it

  1. Coupled simulation (accurate). At each sample, solve the hammer ODE together with the string at . Because the force depends nonlinearly on the string displacement, which depends on the force, the coupling is implicit: either solve the small nonlinear equation per sample (Newton, 1–3 iterations) or accept a one-sample delay with care for stability. Only active during contact (a few hundred samples per note), so the cost is small. In a modal string the displacement at is , the sum over mode amplitudes — this is how Bank, Zambon & Fontana (2010) couple a nonlinear hammer to a modal piano in real time.
  2. Precomputed excitation (cheap, first step). Simulate or measure the force pulse for a range of velocities offline, store them, and feed the string the pulse for the played velocity (interpolating between stored ones). Linear afterwards, so it also allows commuted synthesis (page 06). Loses the treble re-contact effects.

Order in this project: the precomputed pulse first, to hear the other mechanisms; then the coupled hammer.

Parameters to fit

Per key (smooth across the keyboard): , , , strike position , and optionally the hysteresis . They are fitted from how the spectrum changes with velocity on recordings of single notes at several velocities (page 12).