vl_dist: Voice-leading distance

Description Usage Arguments Value Note References

Description

Computes the minimal voice-leading distance (in semitones) between two chords, using the minimal voice-leading algorithm of \insertCiteTymoczko2006;textualvoicer as implemented in the minVL package (see min_vl).

Usage

1
vl_dist(contexts, continuation)

Arguments

contexts

A list of chords corresponding to the first chord in the transition. Each chord should be represented as a numeric vector of MIDI note numbers, without duplicates, sorted in ascending order. The function is vectorized over this argument.

continuation

The second chord in the transition, represented as a numeric vector of MIDI note numbers, without duplicates, sorted in ascending order.

Value

A numeric vector of the same length as contexts, with the ith element corresponding to the sum voice-leading distance between the ith element of contexts and continuation.

Note

Unlike Tymoczko's original presentation, distances are computed in pitch space, not pitch-class space.

References

\insertAllCited
pmcharrison/voicer documentation built on Dec. 17, 2020, 1:09 p.m.