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

    Type Alias ChordSpan

    A chord positioned in time: a root pitch class and quality placed at a beat, with optional harmonic-analysis hints. Serves as the neutral exchange record between progression generators and timeline analysers.

    type ChordSpan = {
        rootPc: number;
        quality: ChordQuality;
        startBeat: number;
        bassPc?: number;
        intervals?: number[];
        degree?: number;
        secondaryDominant?: boolean;
    }
    Index
    rootPc: number
    quality: ChordQuality
    startBeat: number
    bassPc?: number
    intervals?: number[]

    Semitone offsets from the root, for a chord the ChordQuality union cannot name exactly. Omitted for a standard chord: the template is then derived from quality, which is what every producer and consumer did before the field existed. Read a span with chordFromSpan so either case yields the same chord.

    degree?: number

    1-based scale degree of the chord root, when known.

    secondaryDominant?: boolean

    True when the chord is a secondary dominant tonicizing another degree.