Harmony and melody are two fundamental elements of music. While both are essential, they serve distinct roles in a composition.
Harmony refers to the combination of different notes played simultaneously, creating chords and a richer, fuller sound. It provides the harmonic background and structural support for the melody. Harmony is typically built from chords—groups of notes stacked vertically—that establish the tonal framework of a piece.
Melody is a succession of single notes perceived as a cohesive musical line. It is the primary, most memorable part of a song—the tune you hum or sing. Melodies are usually performed by a single voice or instrument and carry the emotional and thematic identity of the music.
In short, harmony is vertical (notes at the same time), while melody is horizontal (notes in sequence). Together, they create a complete and engaging musical experience.