Represents a key, such as Eb (symbol), #3 (numeric) or VII (numeral).

The only function considered public API is Key.distance

Implements

  • KeyProperties

Methods

  • Returns a string representation of an object.

    Parameters

    • __namedParameters: { showMinor?: boolean; useUnicodeModifier?: boolean } = {}

    Returns string

  • Calculates the distance in semitones between one key and another.

    Parameters

    • oneKey: string | Key

      the key

    • otherKey: string | Key

      the other key

    Returns number

    the distance in semitones