any_parallels: Any parallels

Description Usage Arguments Value Note References

Description

Checks for parallel octaves or fifths within a chord transition. Voice parts are inferred using the minimal voice-leading distance algorithm of \insertCiteTymoczko2006;textualvoicer as implemented in the minVL package (see min_vl).

Usage

1
any_parallels(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. any_parallels 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 logical vector of the same length as contexts, with the ith element being TRUE if parallel octaves or fifths are found between the ith element of contexts and continuation, and FALSE otherwise.

Note

This is a voicer feature suitable for passing to the features argument of voice_opt.

References

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