The diagram above shows the names of all possible intervals within an octave ... notes follow a set pattern that depends on ...
The intervals between these pitches give each scale a different characteristic and name. This video is about the different types of scales a musician can use.