Melodic minor scale
In classical theory, melodic minor raises the sixth and seventh on the way up and commonly returns to natural minor on the way down.
Two directions, one purpose
A conventional A melodic-minor ascent is A–B–C–D–E–F-sharp–G-sharp–A. The raised sixth removes the wide F-to-G-sharp leap found in harmonic minor. A common descending form is A–G–F–E–D–C–B–A. In jazz contexts, “melodic minor” often means the ascending form in both directions, so state which usage you mean.
Sing the two paths
Play A–E–F–G-sharp–A, then A–E–F-sharp–G-sharp–A. Notice how one changed note alters the climb. Descend from A using G and F natural. Put the line over A minor and then over E7 to hear which notes feel like home and which feel like a route back.
Keep the melody in charge
A scale diagram cannot tell you which version a real phrase must use. Composers adjust minor sixths and sevenths in context. If the raised notes create an unwanted chord clash, change the harmony or choose the natural note rather than applying a formula mechanically.
Related entries
Further reading
These source links provide technical background; the exercises above are Eidolon's own editorial guidance.