Function majorTonicFromKeySignature

  • Given a key signature, returns the tonic of the major key

    Parameters

    • sig: string | number

    Returns string | null

    Example

    majorTonicFromKeySignature('###') // => 'A'