While harmony refers to the way individual notes are played together simultaneously and how they sound, melody is how notes are played in succession in a linear manner. In other words, harmony is how notes are organized vertically, whereas a melody refers to how they are ordered vertically. In a melody, also known as a tune, the notes that constitute it are recognized by the listener as a single entity instead of just individual notes played without clear cohesion.