When a melody is created from the notes of a scale, it is said to be in the key of that scale. The following melody contains notes from the C major scale and is therefore in the key of C major. The notes of the C major scale can be used to play thousands of melodies.