A musical scale is basically a collection of notes that divide the octave in a certain number of scale…