MIDI input check

How does detuned audio map to MIDI notes?

The output is rounded to an integer MIDI note. In this controlled C4 check, -50 through +25 cents still mapped to C4; -75 cents mapped to B3, while +50 and +75 cents mapped to C#4.

A detuned C4 maps to B3 at minus 75 cents, C4 from minus 50 through plus 25 cents, and C sharp 4 at plus 50 and 75 cents.
One source note can cross a rounded MIDI-note boundary without becoming a new performed note.
Short answer: check tuning before correcting an apparent one-semitone MIDI error. This fixture stayed C4 from -50 to +25 cents, then rounded to a neighboring MIDI note. Best with one exposed melody, not chords or a full mix.

Convert one clear melody

Controlled detuning check

300 ms C4 offsetMedian output MIDI noteResult
-75 centsB3Not retained as C4
-50, -25, 0, +25 centsC4Retained as C4
+50 and +75 centsC#4Not retained as C4

Rounded notes are not tuning correction

The browser writes integer MIDI notes. It does not preserve a cents offset as continuous pitch data. Treat a neighboring output note as a signal to check the source tuning, not proof of a second note in the performance.

Fixture conditions and limits

Each point used 10 generated mono 44.1 kHz fixtures with a synthetic 300 ms C4 source at amplitude 0.70, Melody / solo instrument mode, Balanced sensitivity, a 2048-sample analysis window, and a 1024-sample hop. A retained C4 needed one output at C4 with at least 50% overlap. Detector SHA-256: DDA185AC8FB6A179A4FCFA73FD4197ACC95B8B6F59B233F5D3E330F596309F9F.

These are controlled source checks, not a universal tuning, voice, instrument, song, or accuracy promise.

Related: pitch slides · slow pitch drift · source-backed cleanup