Piano audio to MIDI with sustain pedal

Notes alone do not describe a piano performance. Damper reconstructs the sustain pedal precisely, as editable MIDI CC64, instead of hiding all the ringing inside artificial note lengths.

Why the pedal is the hard part

Pitch and timing are visible in the sound: a note is struck, the spectrum changes, you can find it. The pedal is not. Lifting the dampers does not make a sound of its own. It changes what happens to sounds already ringing. You cannot look for the pedal directly. You have to infer it from what stays alive and what dies.

A note-only transcription can therefore sound clipped even when its pitches are right: every note ends with the finger, while the original performance may have been held by the pedal.

What comes out

ControllerCC64, the standard sustain controller supported by MIDI-capable DAWs and instruments
PlacementCleanly placed, with the natural feel of a real re-pedal
End of fileThe pedal is always released, so no file ends with the dampers stuck up
Note lengthsWritten to match: fingers release early, the pedal holds the sound

How precise the pedal is, measured

The reference is ten pieces whose pedal was marked by hand, with 433 expected lifts. At a ±0.125-beat matching tolerance, Damper measured 0.745 precision, 0.688 recall and 0.715 F1.

That number deserves its context rather than a badge. It was measured on one specific body of material. A recording with heavy room reverb, a very different instrument, or a performance whose pedalling is unusual will do worse. Reverb in particular blurs exactly the evidence the method depends on, because it makes sounds outlive their harmony.

So the pedal you get is a serious starting point, not a finished performance. Play the file, read the sustain lane, fix what you disagree with. That is far quicker than drawing it from nothing, which is the actual alternative.

Where it fails

Transcribe a recording