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

    Function borrowedSource

    • Identify where a non-diatonic chord comes from.

      The Neapolitan (major triad on b2 of a key that does not have that degree already) is recognized first, since it sits outside both parallel modes; parallel-mode borrowing follows the isBorrowedChord rules. Diatonic chords and altered-minor chords, and unrecognized chromatic chords all yield null.

      Parameters

      • chord: ChordLike

        The chord to classify, as a chord symbol, chord data, or a Chord.

      • key: KeyLike

        The prevailing key, as a key name, a key/scale, or a Key.

      Returns BorrowedSource

      The borrowing source, or null.