Skip to content

Pitch interval

The semitone separation between two octave-specified musical pitches, directed or undirected without octave reduction.

Version
v1 · 2026-09-28 · History
Domain-specific #
11330
Domain group
Arts & Aesthetic Practice
Origin domain
Music & Musicology
Subdomains
Music Theory, Musical Set Theory → Music & Musicology
Aliases
Chromatic pitch interval

Core Idea

A pitch interval in chromatic music analysis compares two octave-specified pitches by semitone separation. The ordered form is signed: y−x is positive for an upward move and negative for a downward one. The unordered form uses the absolute value, keeping size but dropping orientation. Unlike pitch-class intervals, both retain octave position; C4 to C5 is twelve semitones, not zero.

A semitone count does not alone fix the interval's diatonic spelling: six semitones may be an augmented fourth or diminished fifth according to notation. The official music21 guide illustrates a perfect fifth with seven semitones, a descending reverse, and a separate reduced intervalClass of five. These are different queries of pitch information, not competing answers to one question. The target assumes a stated chromatic frame; a raw frequency difference without a musical pitch representation is not the same object.

How would you explain it like I'm…

Counting Piano Steps

A pitch interval is how far apart two notes are, counted in the smallest piano steps. If you go up, the number is positive, and if you go down, it's negative. A note and the same note one octave higher are 12 steps apart, not zero.

Steps Between Two Notes

In music, notes can be counted in tiny steps called semitones, like moving one key at a time on a piano, black keys included. A pitch interval is the number of semitones between two specific notes. If you care about direction, going up gives a positive number and going down gives a negative number; if not, you just use the size. Unlike pitch classes, pitch intervals pay attention to which octave notes are in, so C to the next C up is 12, not 0.

Semitone Distance Between Pitches

A pitch interval measures the distance between two specific pitches (with their octaves) in semitones. The ordered version keeps direction: y − x is positive going up and negative going down. The unordered version uses |y − x|, keeping the size but not the direction. Both keep register, so C4 to C5 is 12 semitones, not 0. That's the difference from a pitch-class interval, which reduces everything modulo 12. Semitone counts also don't settle how an interval is spelled: 6 semitones could be an augmented fourth or a diminished fifth depending on the written notes. A difference in sound frequency without a musical pitch framework is not this kind of interval.

 

A pitch interval in chromatic musical-set analysis compares two octave-specified pitches by their semitone separation. The ordered pitch interval is y − x, signed by direction (positive upward, negative downward); the unordered pitch interval is |y − x|, retaining size but not order. Both preserve register: C4 to C5 is 12, not 0, unlike the pitch-class interval, which reduces modulo 12 under octave equivalence. Chromatic distance underdetermines diatonic spelling; six semitones may be an augmented fourth or diminished fifth depending on notation. Size, orientation, spelling and class are separate pieces of information, as the music21 toolkit shows by distinguishing semitones, a descending reverse and interval-class reduction: a perfect fifth has 7 semitones but interval class 5. A frequency difference without a declared musical pitch frame is not this semitone interval.

Scope of Application

These uses retain pitch register while choosing whether direction matters.

  • Melodic analysis. Retain upward and downward displacement across successive pitches.
  • Harmonic comparison. Compare unordered semitone spans while retaining register.
  • Computational music theory. Keep chromatic semitone counts separate from interval-class reductions.
  • Notation interpretation. Distinguish a numerical span from its diatonic spelling.

Clarity

Name both octave-specified pitches and the semitone frame. From C4 to E5 the directed difference is +16; backward it is −16; unordered magnitude is 16. A pitch-class interval is the closest miss because modulo-12 reduction discards register. State separately whether the analysis preserves direction, octave, and diatonic spelling.

Manages Complexity

The word interval can conceal four transformations: choose a chromatic frame, retain or drop direction, retain or reduce octave, and assign a diatonic spelling. Keeping these transformations explicit explains why music21 reports a perfect fifth as seven semitones but an intervalClass of five. It also prevents a melodic contour analysis from silently becoming a pitch-class inventory.

Abstract Reasoning

  1. Specify the two pitches with octave positions and one semitone coordinate system.
  2. Subtract endpoint coordinates for an ordered signed interval.
  3. Take absolute value only if direction is intentionally discarded.
  4. Preserve the unreduced span before any modulo-12 pitch-class comparison.
  5. Keep diatonic spelling and enharmonic interpretation separate from chromatic semitone size.

Knowledge Transfer

The signed/absolute separation distinction transfers among melody analysis, harmony comparison, and music software when endpoints and tuning frame are preserved. music21's exact interval-class result should not be copied as an unreduced distance, and its notation spelling conventions need not transfer to another tuning system. Outside musical pitch space, a signed number difference is only a structural analogy, not this pitch interval.

Neighborhood in Abstraction Space

Pitch interval sits in a crowded region of the domain-specific corpus (39th percentile for distinctiveness): several abstractions share nearly its structure, so a description that fits it tends to fit its neighbors too.

Family — Musical & Poetic Form (11 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-11-14