@libraz/libcantus - v1.1.0
    Preparing search index...

    Type Alias ChordMatch

    A candidate chord interpretation of a pitch set.

    type ChordMatch = {
        rootPc: number;
        quality: ChordQuality;
        missingPcs: number[];
        extraPcs: number[];
        exact: boolean;
        inversion: number | null;
        bassPc?: number;
    }
    Index
    rootPc: number
    quality: ChordQuality
    missingPcs: number[]

    Chord tones absent from the input (an incomplete voicing).

    extraPcs: number[]

    Input pitch classes not belonging to the chord.

    exact: boolean

    True when the input pitch-class set equals the chord exactly.

    inversion: number | null

    Inversion implied by a known bass: 0 for root position, 1..n for an inversion. Null when no inversion can be named — either the input is an unordered pitch-class set with no bass, or the bass is not a chord tone (a pedal or passing bass), in which case bassPc still reports it.

    bassPc?: number

    Bass pitch class when the lowest note is not the root.