Function fromSemitones

  • Get interval name from semitones number. Since there are several interval names for the same number, the name it's arbitrary, but deterministic.

    Parameters

    • semitones: number

    Returns IntervalName

    the interval name

    Example

    Interval.fromSemitones(7) // => "5P"
    Interval.fromSemitones(-7) // => "-5P"