AUDIO TO MIDI / SAMPLE RATE AND INTERPOLATION

Audio to MIDI at two sample rates

More saved samples need not give you different note instructions.

Measured answer. Our retained 22,050 Hz source and its specified 44,100 Hz linear interpolation produced exactly the same complete 74-byte MIDI. Both actual downloads contain C4, D4 and E4 with identical boundaries. This one synthetic pair does not show that upsampling improves transcription or restores recording detail.

24 November 2026 · Saved originals · Actual native MIDI downloads.

Keep the original points, define the added points

We retain the exact first 33,075 signed PCM16 samples from the six-tone original used in our earlier experiments. This excerpt contains three programmed windows: keys 60, 62 and 64, called C4, D4 and E4 here. Their starts are 0, 0.5 and 1 second; each source window lasts 0.36 seconds including its synthesized attack and release. These are construction settings, not measurements of a performer.

The retained file is mono at 22,050 Hz. We construct a second file at 44,100 Hz using y[2i] = x[i] and y[2i+1] = round((x[i] + x[next]) / 2), where next is min(i+1, N−1). Rounding uses ties away from zero. At the final sample, the neighbor repeats the final zero. The even-index values preserve the exact original integers, while each odd-index value is a specified rounded midpoint.

Retained original

33,075 samples

33,075 ÷ 22,050 = 1.5 seconds

Specified interpolation

66,150 samples

66,150 ÷ 44,100 = 1.5 seconds

The complete original WAV has 66,194 bytes: a 44-byte header plus 66,150 data bytes. The interpolated WAV has 132,344 bytes: a 44-byte header plus 132,300 data bytes. Both store 16-bit samples. This is an actual new data sequence with a matching rate field, not the same bytes relabeled at a different playback rate.

Actual retained saved samples and inserted rounded midpoints at the beginning of the programmed onset fade.
Original frames 0–11 and their inserted midpoints. Lines connect saved values for readability; they are not captured decoder or detector frames.

Hear the two saved input files

These are the WAVs selected for transcription, not audio rendered from the exported MIDI. Choose play to compare them. No listener study, speaker measurement or real microphone capture is part of this experiment.

22,050 Hz original

33,075 saved PCM16 samples at the retained source rate.

44,100 Hz interpolation

66,150 saved PCM16 samples, with a specified midpoint between each retained pair.

Read the saved files independently

A separate reader decoded both actual WAVs and checked their mono PCM format, rate, data length and RIFF length. It compared every one of the 33,075 retained sample pairs. All saved even-index values equal their original counterparts, with an integer error range of 0 through 0.

For each inserted value, the check uses twice_error = 2 × saved_midpoint − original − next_original. Its range is −1 through 1. Thus abs(twice_error) ≤ 1, equivalent to a midpoint difference no larger than 0.5 of one signed PCM integer unit. This bound describes our saved input construction; it is not a note-timing error or a converter accuracy threshold.

There are 12,034 odd-sum midpoint cases. We independently checked the tie direction in each: a nonnegative odd sum requires twice_error = 1, and a negative odd sum requires −1. Even sums have an exact midpoint. This distinguishes the specified rounding rule from simply accepting any value inside a half-step bound.

Increasing the count by interpolation adds values computed from the retained file. It does not demonstrate that new detail was captured before that file existed. Audacity’s sample-rate manual defines the rate as audio samples carried per second. Here, both the data count and rate double, so the defined duration remains 1.5 seconds.

Three actual note events in each native download

On 24 November 2026 we selected each saved WAV separately in the production Chrome converter. Export BPM was 120 and the clear-final-release estimate was enabled for both. Selecting the second input hid the old result. We converted again, clicked the native Download .mid control and independently parsed each newly saved complete file.

Both outputs have 74 bytes, three notes and exactly the same complete bytes. Their keys are 60, 62 and 64, each with velocity 88. Both are format-zero MIDI files with one track, 480 ticks per quarter and one tempo event of 500,000 microseconds per quarter note. Neither contains controller or Pitch Bend events. Matching sizes alone would not establish this result; the comparison covers the entire saved files.

Independently parsed actual boundaries in saved export ticks, not rounded interface labels.
Key 22,050 start 44,100 start 22,050 end 44,100 end
C4 0 0 357 357
D4 379 379 847 847
E4 869 869 1245 1245

The D4 start is 379 ticks in both files. Seconds = ticks ÷ 480 × 500,000 ÷ 1,000,000 = ticks ÷ 960, giving 379 ÷ 960 ≈ 0.394792 seconds. Its programmed source window starts at 0.5 seconds. Equal exports therefore do not establish exact agreement with the specified source timing.

The three actual key intervals and complete 74-byte MIDI exports match for the retained and interpolated input files.
Both actual files match, including the tempo and note boundaries. This result belongs to this source pair and setting.

What this comparison can tell you

We tested one retained synthetic melody and one defined linear interpolator. We did not compare a range of resampling filters, recording devices, source bandwidths or instruments. We did not measure conversion latency, listening quality or an accuracy rate, and these file sizes do not establish a speed advantage.

No intermediate decoded, resampled or detector frames were captured. The matching saved MIDI does not isolate the internal reason for the match. Keep the original audio, inspect the returned note starts and endings, and treat the MIDI as an editable estimate. The conversion tutorial covers the basic workflow; changing stored amplitude precision is a different operation from changing the sample rate tested here.

Download both originals and actual note files

Read every header check, saved value, actual event and hash.

Watch the saved-file comparison

See the retained samples, inserted midpoint values and the same actual note export. This is a digital interpolation test, not a high-rate microphone recording.

Original English explanation and diagrams; narration synthesized with macOS Daniel voice. Watch this test on YouTube.

Questions before changing your recording rate

Does converting this file to 44,100 Hz improve the returned notes?

Editorial question. The complete actual exports are identical for this defined pair. That shows no change in the saved note instructions here, not a general rule about every source or resampling method.

Did the extra samples capture new recording detail?

Editorial question. No new recording was made. We retained the original integers and calculated midpoint values from them. This construction cannot demonstrate detail newly captured by a microphone.

A separate short-window articulation comparison changes actual MIDI endings while preserving the returned keys and starts.
Shortening source windows is a different operation from interpolating the sample rate.
Inspect the short windows and actual note endings.