AUDIO TO MIDI / STEREO CHANNELS

Audio to MIDI for opposite-polarity stereo

Measured answer. In this stereo test, opposite channels produced no MIDI. Exporting the left channel alone recovered the same three notes and the same MIDI bytes as the matched stereo file. Try a clean channel as mono if your take disappears during conversion. This was an exact synthetic pair.

28 November 2026 · Original PCM controls · Live Chrome conversion

Two stereo files share the same left channel

Both original files are stereo PCM16 at 22,050 Hz with 33,075 frames, so their duration is 33,075 ÷ 22,050 = 1.5 seconds. Each takes 44 + 33,075 × 2 × 2 = 132,344 bytes. The left channel in both plays the programmed keys 60, 62 and 64, called C4, D4 and E4 here. Its three source windows start at frames 0, 11,025 and 22,050.

For every saved left value x, we used x on the right in the matched file and −x on the right in the opposite file. An independent reader verified the complete saved channel arrays. The left channel contained 23,808 nonzero samples and reached an absolute peak of 8,192 in each file.

Apply the equal-weight mean at each position. The matched calculation gives (x + x) ÷ 2 = x. The opposite calculation gives (x − x) ÷ 2 = 0. All 33,075 opposite-file averages are zero even though each channel carries the melody on its own. The Web Audio recommendation specifies the same stereo-to-mono speaker formula. W3C Web Audio, down-mixing speaker layouts.

The two files share their left channel. Identical channels average to x and opposite channels average to zero.
The arithmetic is calculated from both sets of saved samples.

One stereo export succeeds, one stops before download

We selected each original separately in the live WAV converter in Chrome at 120 BPM with the final release estimate on. The matched stereo file offered a MIDI download with three notes. After we replaced it with the opposite stereo file and converted again, the page reported No clear melody notes were detected. Try a clean, louder single-note recording. Its result panel and download were hidden. We observed no newly saved MIDI from that attempt.

The script loaded by the public converter matched the saved site theme byte for byte. It adds each decoded channel divided by the channel count, resamples that average and sends it to note detection. The input arithmetic, this code and the browser result describe a consistent sequence for this fixture. The raw record includes the script URL and hash. Our measurements cover the saved PCM and the visible conversion result.

Observed Chrome results for the original stereo pair and its recovery
Input Channel relationship Live result
Matched stereo Right equals left 3 notes, 74-byte MIDI
Opposite stereo Right equals negative left No clear melody, no download
Left channel only Mono extraction from the opposite file 3 notes, identical 74-byte MIDI
Matched stereo and left-only mono each produced the same 74-byte MIDI. Opposite stereo produced a no-notes message and no download.
Both successful rows are based on actual native MIDI downloads.

Export one clean channel and check the draft

We read the left samples from the opposite stereo file and wrote them in the same order with a mono WAV header at the same sample rate. The new file has 44 + 33,075 × 2 = 66,194 bytes. Every extracted sample equals the corresponding left sample in both stereo inputs. The live converter again returned a three-note MIDI file. The complete output bytes match the original matched stereo download.

Both downloaded files use 480 ticks per quarter note and one 500,000-microsecond tempo event. The paired starts are 0, 379 and 869 ticks, and the paired endings are 379, 847 and 1337. Timing still needs a listen. For D4, the returned start is 379 ÷ 480 × 500,000 ÷ 1,000,000 ≈ 0.394792 seconds, ahead of its 0.5-second programmed window.

  1. Split the stereo recording into left and right in your audio editor. Solo each side and choose a channel that carries the melody clearly.
  2. Export just that channel to a mono WAV, keeping the original stereo recording for reference.
  3. Convert the mono file and compare the downloaded note boundaries with that channel before using it in a score or arrangement.

Real recordings can have uneven levels, room sound or different material on each channel. The exact cancellation and recovery reported here cover the supplied pair at the tested settings. The single-channel polarity experiment measures a separate change in the same source melody.

Listen to the three source WAVs

These are the converter inputs. Use stereo headphones or listen to the isolated-channel export to hear the melody in the opposite-channel fixture. How the stereo players sound depends on your playback setup.

Matched stereo

Opposite stereo

Left channel only

Watch the stereo polarity experiment

Watch on YouTube

Download the inputs and observed outputs

Matched stereo

Original WAV ↓Actual native MIDI ↓

Opposite stereo

Original WAV ↓

The observed run offered no MIDI.

Left channel only

Original WAV ↓Actual native MIDI ↓

Download the full check, hashes and MIDI events ↓

Questions when a stereo take produces no notes

Can I fix exact stereo cancellation by raising both channels?

Editorial question. If both channels get the same gain g, their average stays (gx − gx) ÷ 2 = 0. The tested recovery used the left channel by itself. Listen to your recording to choose the better source.

Which MIDI belongs to the opposite stereo file?

Editorial question. The opposite stereo run offered no download. The recovery MIDI comes from its left channel exported as a separate mono WAV. Both files are labeled by their input in the downloads.

What if the other channel is silent?

Compare dual mono and hard left using the same recorded samples. The companion test checks the mono level and every MIDI event.

The left samples are retained and the right changes from identical to silent.
Both test files keep the same left channel.
See the one-sided stereo comparison