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

    Type Alias SubstitutionType

    SubstitutionType: "tritone" | "relative" | "borrowed" | "chromaticMediant"

    The kind of substitution relationship a candidate realizes.

    An applied dominant is not among them: which dominant applies is decided by the harmony that follows, and substituteChord is given one chord and a key. Build one with secondaryDominantOf where the target is known, or let harmonizeMelody open its vocabulary with reharmonize: 'secondaryDominant' where the progression is being chosen as a whole.