The key a signature denotes: the inverse of keySignatureFifths for
the two modes a signature is conventionally read in.
A signature names two keys — three sharps is both A major and F# minor — so
the mode decides which one is built. The tonic is spelled the way that key is
written, including the theoretical keys past ±7 (nine sharps is D# major).
Parameters
fifths: number
The signed number of sharps (positive) or flats (negative).
The key a signature denotes: the inverse of keySignatureFifths for the two modes a signature is conventionally read in.
A signature names two keys — three sharps is both A major and F# minor — so the mode decides which one is built. The tonic is spelled the way that key is written, including the theoretical keys past ±7 (nine sharps is D# major).