Universal Music Theory Library - v0.12.0
    Preparing search index...

    Class VoiceLeadingGeometry

    Voice-leading geometry (Tymoczko): OPTIC equivalence and minimal voice leadings between chords.

    Index

    Constructors

    Methods

    • Returns the voice-leading distance between two chords: the minimum total semitone displacement across all voice assignments.

      Parameters

      Returns number

    • Finds the most efficient voice leading between two chords in pitch-class space: each voice of a goes to a note of b, and the cost is the sum of the interval classes moved (the shortest way, up or down, ignoring octaves). Up to 8 voices.

      Returns all minimal-cost assignments (notes of b in the order of a's voices) and the total distance in steps.

      Parameters

      Returns { paths: Note[][]; totalDistance: number }

      • paths: Note[][]

        Every minimal assignment: notes of b in the order of a's voices.

      • totalDistance: number

        Sum of the interval classes moved, in steps.

      RangeError for chords of more than 8 notes.