Understanding Music Transposition
Transposition means shifting every note of a melody, chord, or key by the same musical interval, so the piece sounds higher or lower while all the relationships between notes stay identical. This tool transposes a single starting pitch by a chosen interval and direction, using the same math that underlies transposing whole passages, key signatures, or parts for transposing instruments.
The formula
Every pitch is represented as a MIDI note number, the standard integer scale used by digital instruments and notation software: midi = (octave + 1) x 12 + chromatic index, where the chromatic index runs from 0 (C) to 11 (B) and C4 (middle C) equals MIDI 60. Transposing by N semitones simply adds N to the MIDI number (or subtracts N when moving down): new midi = midi ± N. The resulting note name and octave are recovered with index = new midi mod 12 and octave = floor(new midi / 12) − 1.
Frequency in 12-tone equal temperament (12-TET) follows directly from the MIDI number: f = 440 x 2^((midi − 69) / 12) Hz, since MIDI note 69 is defined as A4 at exactly 440 Hz and each semitone changes frequency by a constant ratio of the 12th root of 2 (≈1.059463).
Reading intervals
An interval is the distance between two pitches, commonly named by counting semitones: a major 2nd is 2 semitones, a perfect 5th is 7 semitones, and a full octave is 12 semitones. Because 12-TET spaces every semitone identically, transposing "up a major 3rd" always adds exactly 4 semitones no matter what note you start from - the interval's sound and shape are preserved, only the starting pitch changes.
Why frequency and MIDI numbers matter
The pitch name alone (like "D4") does not tell you how the note relates numerically to others, and note spelling can vary (D# and Eb are the same pitch). The MIDI number and frequency give an unambiguous, calculable answer: two notes with the same MIDI number always sound identical, and the frequency tells you exactly how fast the string, reed, or speaker cone needs to vibrate to produce that pitch.