Description Usage Arguments Value Note References
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
).
1 | vl_dist(contexts, continuation)
|
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. |
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
.
Unlike Tymoczko's original presentation, distances are computed in pitch space, not pitch-class space.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.