When a composer writes for an instrument using scordatura tuning he shows at the beginning of the music what notes the strings must be tuned to. The music is then written, not as it sounds, but so that the player can read it as if the instrument were being played normally, e.g. if a G string is tuned up to G# and the composer wants a G# he simply writes a G, but it will sound G#.