@libraz/libcantus - v0.9.3
    Preparing search index...

    Function analyzeChord

    • Analyze a chord in a key: harmonic function, borrowing, and Roman numeral.

      The function is quality-aware (see the predicates behind it), the source follows borrowedSource, and the numeral comes from chordToRoman. borrowed is true whenever a source is identified — including the Neapolitan, which the stricter parallel-mode predicate isBorrowedChord does not count.

      Parameters

      Returns ChordAnalysis

      The chord analysis.

      import { analyzeChord, makeChord, majorKey } from '@libraz/libcantus';
      analyzeChord(makeChord(7, 'dom7'), majorKey(0));
      // { function: 'dominant', borrowed: false, source: null, roman: 'V7' }