Can Audio to MIDI Capture a Sustain Pedal?
Usually, an audio-to-MIDI melody sketch does not reproduce the pianist's pedal movements. AudioNote MIDI's current exporter writes detected note-on and note-off events; it does not write sustain-pedal Control Change (CC) 64 events. That distinction matters: MIDI note length and a pedal-held sound are related in playback, but they are not the same event. Keep the original audio, review the notes, and add or edit CC 64 in your DAW only if the source performance uses sustain.
Note length is not the same as sustain
A MIDI note has an onset and a release event. A sustain pedal is represented separately as a controller message. In MIDI 1.0, the MIDI Association lists controller 64 as damper-pedal on/off: values up to 63 mean off, while values from 64 mean on. A receiving instrument can continue sounding a released note while that pedal controller is on.
So an audio recording can contain a long piano tail even when the corresponding MIDI key was released earlier. Extending the note rectangle may be useful for a different musical edit, but it does not recreate the original pedal timeline. Conversely, a CC 64 event can affect how a compatible instrument plays notes without rewriting their stored note-off positions.
What this converter actually writes
We checked the current AudioNote MIDI exporter source on November 24, 2026. Its MIDI event builder creates note-on messages with the detected pitch and a fixed velocity, plus matching note-off messages at the detected end time. The writer does not add a Control Change 64 event. This is a statement about this site's current implementation, not every audio-to-MIDI converter.
The tool analyzes audio locally and produces one monophonic melody sketch. It does not know whether a pianist's foot was physically on a pedal; it estimates note events from the sound. Reverberation, instrument release, overlapping notes, and a pedal can all make the acoustic tail last beyond the moment a key is released, so that tail alone is not a reliable pedal-event map.
A careful way to add sustain after conversion
- Keep the untouched MIDI and source audio. Duplicate the MIDI clip or save a working copy before editing.
- Confirm the note events first. Compare pitch and timing in the piano roll. Do not add pedal data to hide a wrong note or a missed onset.
- Open the MIDI controller lane or event list. Choose Sustain/Damper Pedal (CC 64). Names and controls differ across DAWs.
- Place pedal-down and pedal-up events by listening. Use the recording as a guide. For the usual MIDI 1.0 on/off mapping, a value of 64–127 is on and 0–63 is off. A compatible instrument or MIDI 2.0 setup may support more nuanced pedal behavior.
- Check every release and listen again. A pedal left on can make later notes ring together. Compare the edited MIDI through the same instrument and keep the original audio available.
DAW menu names vary, so this guide describes the MIDI data to look for rather than claiming a universal button path. Consult your software's manual for the exact controller-lane workflow.
What the guide can and cannot establish
The MIDI Association defines the standard controller mapping. Our exporter check establishes that this site's current writer emits note-on and note-off messages without CC 64. It does not establish how every DAW, instrument, or third-party converter interprets pedal data, nor can it recover pedal timing from a recording without a separate analysis step.
If the goal is a recognizable melody draft, start with the notes and use a suitable instrument. If the goal is a closer piano performance, use the original audio as reference and edit pedal data separately. For note pitch or timing errors, see the note-error checklist or the quantization guide.
Frequently asked questions
Can AudioNote MIDI export sustain-pedal data?
No. Its current MIDI writer emits detected note-on and note-off events, not CC 64 pedal events. It is a monophonic melody sketch, not a pedal-performance reconstruction.
What does CC 64 do?
It is the MIDI 1.0 damper/sustain pedal controller. The standard on/off mapping treats 0–63 as off and 64–127 as on; supported playback behavior depends on the receiving instrument.
Should I lengthen every note to imitate sustain?
No. Changing note lengths changes note-off timing. If you want pedal-like playback, edit the separate CC 64 lane using the audio as a guide, then compare the result.
Can I infer pedal events just from a long audio tail?
Not reliably. A long tail can also come from the instrument's natural release, room reverberation, or effects. Treat pedal placement as a careful listening and editing task.
Sources and scope
- MIDI Association: MIDI 1.0 Control Change Messages — identifies CC 64 as Damper Pedal/Sustain and lists its on/off values.
- MIDI Association: About MIDI, Part 3 — MIDI Messages — describes note-on/note-off and control-change message categories.
- Ableton Live 12 Reference: MIDI Effects — an example of a DAW's sustain/hold CC 64 control. Its interface is Ableton-specific.
Our code review is limited to the current AudioNote MIDI source file app.js, where the MIDI writer emits note-on and note-off messages. The article does not claim to test every device or recover pedal data from audio.