In the last section of Mia and Sebastian's Theme from La La Land, there were a lot of quick runs. Upon transcription I found the relationship of the scale and the base chord is rather unusual.
First run uses D minor
scale over F#m
chord, the second run uses C minor
scale over B7
chord.
Is there a simple way to interpret this kind of relationship? Something like playing melodic minor scale (upward) half step above a dominant root will get you an altered scale.
Transcription (key sign matched scale for clarity):