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

    Function voiceProgression

    • Voice a chord progression with smooth, bounded SATB-style leading.

      Each chord is chosen from a deterministic candidate set, minimizing motion while penalizing counterpoint violations, and weighing the violations the move onto the following chord would then be forced into. A supplied key additionally resolves leading tones and chordal sevenths.

      Parameters

      Returns number[][]

      One ascending MIDI voicing per chord.

      NoSolutionError with the failing chord index when a chord cannot fit the requested ranges.