Start with a Dominant 7th
( ie - G7 )
Chord Tones G - B - F / R - 3 - b7
add the, b-2nd / #-2nd / b-5 / #-5
Think of the '2nd as the 9th
R - b-9 - #-9 - 3 - b-5 - #-9 - b-7
G - Ab - Bb - Cb - Db - Eb - F .
( the b-2nd is the Parent Scale ).
Ab = Harmonic minor, ‘Altered Scale.
( 7th mode of the Melodic minor. )
( also )... Take any Major Scale. and when you play the #1, 4, 5 , and 6 'Relative minor, Instead of playing the notes of the Major 5 Dominant, make the 7th, a Major, instead of a minor, by adding a #, you present a more adequate progression when you change to a "minor harmonic scale" for the 5th. ( I.M.O. ).