Function semitones

  • Get semitones of an interval

    Parameters

    • name: string

    Returns number

    Function

    Example

    Interval.semitones('P4') // => 5