MIDI2TEX contains a facility to generate sharps and flats taken
into account the general key sign.
To use this method translate the MIDI file with the
option -k. The parameter of the -k option should be the number of
flats or sharps of the key sign. Now after the translation process the
file is ready for processing by MusicTEX .