@tspro/web-music-score
    Preparing search index...

    Class Interval

    Interval class.

    Index

    Properties

    Interval direction.

    note1: Note
    note2: Note

    Interval quality.

    quantity: number

    Interval quantity.

    semitones: number

    Number of semitones.

    Methods

    • Get abbrevated string presentation of interval (e.g. "↓M2").

      Returns string

      • Interval abbrevated string.
    • Get string presentation of interval (e.g. "Descending Major 2").

      Returns string

      • Interval string.
    • Get interval between given two notes.

      Parameters

      • note1: Note

        First note.

      • note2: Note

        Second note.

      Returns undefined | Interval

      • Interval if valid, or undefined.