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

    Class Chord

    Chord class.

    Index

    Properties

    chordInfo: ChordInfo
    name: string

    Chord name.

    notes: Note[]

    Notes of this chord.

    omitNotes: boolean[]

    Notes that are omitted in this chord (partial chord).

    rootNote: Note
    slashBassNote?: Note

    Bass note if not chord root note (e.g. "B" in "C/B").

    Methods

    • Get degree notation string (e.g. "E - 1(C) - 3(E) - 5(G)").

      Returns string

      Degree notation string.

    • Get string presentation of omitted degrees (e.g. "Omits 5(G), 9(D)").

      Returns string

      • String presentation of omitted degrees.
    • Get chord string presentation.

      Returns string

      Chord string presentation (e.g. "C/B").

    • Get all chords that can be made up with given notes.

      Parameters

      • notes: readonly Note[]

        Array of notes.

      Returns readonly Chord[]

      • Array of chords.