YouTube-to-MIDI sustain test

Does YouTube to MIDI preserve sustain pedal?

No—not as sustain-pedal data in the current converter. In a controlled A/B test, a longer audible C4 decay became a longer MIDI note, but both exports contained zero controller events and no CC64 sustain messages. Recreate the pedal in your DAW.

Make a note draft

This result describes two generated tones in the current converter. It does not predict every piano recording or audio-to-MIDI system.

What we tested

We generated two four-second, 22,050 Hz mono WAV files containing the same 261.626 Hz C4 tone. Both used the same 0.8-second held section. One faded out over 0.3 seconds; the other faded over 2.7 seconds to model a much longer audible release. No public recording or performer was used.

Both files went through the local converter with its default controls. Each exported a 67-byte MIDI file without browser console errors.

InputObserved C4 notesLast note endCC64 events
0.3 s release0.767 s + 0.278 s1.068 s0
2.7 s release3.275 s + 0.174 s3.460 s0

What happened to the audible sustain

The converter followed the longer C4 energy by extending note duration. It did not encode the cause of that longer sound as a damper-pedal instruction. The two short fragments in each result also show why the export should be treated as a draft rather than a literal record of key presses.

MIDI sustain is normally represented by control change 64. A DAW can use that separate message to keep notes sounding after their Note Off events. Neither tested file contained any control-change events, so moving or shortening the notes later will not preserve an independent pedal gesture.

How to repair pedal behavior in a DAW

  1. Clean the note fragments first. Merge or remove retriggered pieces according to the performance you intended.
  2. Shorten notes to key-release points. Do this only when you know where the keys were released.
  3. Add CC64 automation. Draw pedal-down and pedal-up events in the controller lane.
  4. Listen for overlap and blur. Move pedal-up events earlier if adjacent harmonies smear together.

Can audio reveal the original pedal presses?

Not reliably from this test. Audio contains the resulting sound, not a direct record of the physical pedal position. Room reverb, instrument release, compression, and a real damper pedal can all lengthen a tail. This converter captured the audible duration as notes; it did not infer a separate pedal timeline.

What this test proves—and what it does not

It confirms the exact note durations, file sizes, and controller-event counts for two generated C4 release envelopes. It does not measure real-piano pedal accuracy, half-pedaling, repedaling, noisy rooms, or other converters.

For continuous pitch gestures, see the pitch-bend test. If the draft has short duplicates, use the extra-note cleanup guide. If playback uses the wrong sound, follow the instrument and playback guide.

After the note draft: MIDI Agent is a text-to-MIDI AI music plugin for a DAW that can help develop editable melody, chord, drum, and bassline parts from prompts.

Explore MIDI Agent