An interval is the difference in pitch between two notes. In Western music the smallest interval between two notes is one semitone, while a perfect octave is and interval of twelve semitones. Learning intervals is incredibly useful; if you have a melody in your head and you want to pick it out on a piano keyboard, it is vital to know the intervals between the notes you are imagining.