The melodic and harmonic versions of the scale are written in with accidentals as necessary . Changes needed for the melodic and harmonic versions of the scale are written in with accidentals as necessary .