Changes needed for the melodic and harmonic versions of the scale are written in with accidentals as necessary. The G-sharp harmonic minor and melodic minor scales are:
Despite the key rarely being used in orchestral music other than to modulate, it is more common in keyboard music, as in Piano Sonata No. 2 by Alexander Scriabin, who actually seemed to prefer writing in it. Dmitri Shostakovich used the key in the second movement of his 8th String Quartet, and the slow fourth movement of his 8th Symphony is also in this key. If G-sharp minor is used in orchestral music, composers generally write B♭ wind instruments in the enharmonic B-flat minor, rather than A-sharp minor to facilitate reading the music (or A instruments are used instead, giving a transposed key of B minor).