Music consists of three elements: melody, harmony, and rhythm. All music contains rhythm, whether that’s a drumming pattern or a Bach chorale. Melody and harmony are not obligatory parts of a musical composition, but the vast majority of music includes them as well. In Western music, melody and harmony are derived from 12 distinct pitches, and those pitches can be organized into scales. Learn more about melody here and harmony here.