AUDIO TO MIDI / SAVED-SAMPLE REVERSAL
Audio to MIDI for a reversed melody
Reversed note order does not establish mirrored timing.
Measured answer. Reversing our saved melody produced six MIDI events in the opposite pitch order: A4, G4, F4, E4, D4 and C4. Their timing was different from a mirror of the six forward MIDI events. The first backward A4 began 134 ticks earlier than that constructed mirror. This is one synthetic pair and one export setting, not a promise for reversed songs or a transcription accuracy score.
Reverse the audio samples, keep the file structure
We kept the exact saved six-tone original used in our earlier checks. Its programmed keys are 60, 62, 64, 65, 67 and 69, called C4, D4, E4, F4, G4 and A4 here. Their forward windows begin at 0, 0.5, 1, 1.5, 2 and 2.5 seconds, and each lasts 0.36 seconds including its synthesized fades. These are specified source windows, not measured musician attacks or releases.
Both originals are mono signed PCM16 at 22,050 samples per second. Each has 77,175 samples: duration = 77,175 ÷ 22,050 = 3.5 seconds. Both complete WAV files contain 154,394 bytes. We reverse the stored sample sequence using backward[i] = forward[77,174 − i]. The WAV header and its format fields stay intact; we do not reverse the bytes of the whole file or generate new pitches.
A separate reader checked every one of the 77,175 mirror pairs. Reversing the backward samples again restores the entire original WAV, including its unchanged header. This operation also reverses the saved fades and relocates the gaps. It is therefore a different input waveform, not merely a request to sort MIDI notes in descending order.
Listen to the two actual input files
These players contain the saved source WAVs, not sound rendered from MIDI. Choose play to hear either file. Listening and checking the exact samples are separate steps; we did not measure a playback device or run a listener study.
Forward original
Exact saved original. Six intended keys from C4 to A4.
Backward original
The same stored samples in reverse order. The WAV header stays intact.
Two real conversions, six events each
Forward actual MIDI
6 eventsC4 → D4 → E4 → F4 → G4 → A4
101 saved bytes.
Backward actual MIDI
6 eventsA4 → G4 → F4 → E4 → D4 → C4
102 saved bytes.
On 22 November 2026 we separately selected the two original WAVs in the live converter in Chrome, with export BPM 120 and the clear-final-release estimate enabled. Selecting the backward file cleared the previous result and download. We converted again, clicked each native Download .mid control and independently parsed both newly saved complete files.
Both exports are format-zero Standard MIDI Files, with one track, 480 ticks per quarter note and one tempo event of 500,000 microseconds per quarter note. Every note has velocity 88. Neither file contains controller or Pitch Bend events. Those export values do not demonstrate detection of the original dynamics or tempo. The two file sizes differ, and their full bytes differ.
The forward start ticks are 0, 379, 869, 1337, 1828 and 2296; its end ticks are 357, 847, 1315, 1806, 2274 and 2691. The backward starts are 535, 1003, 1494, 1962, 2452 and 2942; its ends are 981, 1471, 1939, 2430, 2898 and 3277. Pairing by the six distinct keys is possible here. We did not need to guess which repeated occurrence belonged to which source event.
Compare against a mirror of the forward export
At the saved export tempo, seconds = ticks ÷ 480 × 500,000 ÷ 1,000,000 = ticks ÷ 960. The source duration spans 3.5 × 960 = 3360 ticks on this scale. To construct a mirror of one forward interval, mirrored start = 3360 − forward end, and mirrored end = 3360 − forward start. We reverse the event order as well. This is a defined comparison construction, not a second conversion or a ground-truth annotation.
For the forward A4 interval of 2296–2691 ticks, the constructed backward interval is 3360 − 2691 = 669 through 3360 − 2296 = 1064. The actual backward A4 is 535–981. Actual minus mirrored is therefore 535 − 669 = −134 ticks at the start and 981 − 1064 = −83 ticks at the end. Opposite pitch order alone would not reveal either timing difference.
| Key | Mirror start | Actual start | Δ start | Mirror end | Actual end | Δ end |
|---|---|---|---|---|---|---|
| A4 | 669 | 535 | -134 | 1064 | 981 | -83 |
| G4 | 1086 | 1003 | -83 | 1532 | 1471 | -61 |
| F4 | 1554 | 1494 | -60 | 2023 | 1939 | -84 |
| E4 | 2045 | 1962 | -83 | 2491 | 2430 | -61 |
| D4 | 2513 | 2452 | -61 | 2981 | 2898 | -83 |
| C4 | 3003 | 2942 | -61 | 3360 | 3277 | -83 |
The source gap moves; the estimated onset still needs checking
The last forward source window ends at 2.5 + 0.36 = 2.86 seconds, leaving 3.5 − 2.86 = 0.64 seconds. Its saved boundary is 63,063 frames. Reversing the half-open source interval [55,125, 63,063) gives [77,175 − 63,063, 77,175 − 55,125) = [14,112, 22,050). Thus the nominal backward A4 window is 14,112 ÷ 22,050 = 0.64 through 1 second. The separate reader also confirmed the first 14,112 backward samples are zero and the next sample is nonzero.
The returned first A4 starts at 535 ÷ 960 ≈ 0.557292 seconds, earlier than that saved source window. This shows why the generated MIDI should be checked against the original file rather than treated as a direct readout of its samples. The source boundary, mirrored forward estimate and actual backward estimate are three different values in this experiment.
We did not capture decoder, resampler or detector intermediate frames, and we did not repeat the experiment across other envelopes or real performances. The reversed fades and relocated gap are known input changes. This comparison does not isolate which internal stage produced a timing difference or establish that a particular edit will repair it.
Check the result in the same direction as the source
If your aim is to arrange the reversed sound, compare the returned MIDI against that reversed WAV. If your aim is to recover a familiar forward melody, keep the original and treat reversal as a separate editing experiment. Neither workflow turns the constructed mirror in our table into a verified performance reference.
Our audio-to-MIDI tutorial covers selecting a file and saving the result. Changing note spacing and shifting the sample baseline are separate source operations; neither is the sample-order reversal tested here.
Download the originals and actual native MIDI
Forward files
Forward original WAV Actual forward MIDIBackward files
Backward original WAV Actual backward MIDIRead every saved event, sample check, hash and calculation input.
Watch the original test explained
Watch the saved-sample reversal, actual downloaded note order and the defined event-mirror comparison. The constructed mirror is not ground truth.
Original English explanation and diagrams; narration synthesized with macOS Daniel voice. Watch this check on YouTube.
Questions before editing the notes
Is reversing audio the same as reversing a MIDI event list?
Editorial question. No for this measured pair. The opposite key order matched, but every actual backward start and end differed from the defined mirror of the forward export. Reversing saved audio also reverses its fades and moves its gaps.
Does an early MIDI onset prove there was sound in the leading gap?
Editorial question. No. We checked 14,112 initial zero-valued samples in the backward WAV, while its first returned MIDI note starts earlier than the next nonzero sample. The exported event is an estimate to compare with the saved source.
Inspect the 8-bit originals and matching actual note files.