Classify the cadence formed by moving from one chord to the next.
A static V-to-V repeat with no root motion is not a cadence and yields null.
The penultimate chord.
The final chord.
The prevailing key.
The cadence type, or null.
import { detectCadence, makeChord, majorKey } from '@libraz/libcantus';detectCadence(makeChord(7, 'maj'), makeChord(0, 'maj'), majorKey(0)); // => 'authentic' Copy
import { detectCadence, makeChord, majorKey } from '@libraz/libcantus';detectCadence(makeChord(7, 'maj'), makeChord(0, 'maj'), majorKey(0)); // => 'authentic'
Classify the cadence formed by moving from one chord to the next.
A static V-to-V repeat with no root motion is not a cadence and yields null.