Melodies like this, that stick to pitches drawn from a single scale, are called diatonic. When songwriters use pitches that lie outside of the scale they have chosen it is called chromaticism—as in chroma, adding color to a melody by including pungent pitches that do not “belong” to the scale.

