part_overlap: Part overlap

Description Usage Arguments Details Value Note References

Description

Checks for part overlap within a chord transition. Part overlap occurs when the pitch height of a certain voice exceeds the pitch height of a higher voice from the previous chord, or alternatively when the pitch height of a certain voice is less than the pitch height of a lower voice from the previous chord.

Usage

1
part_overlap(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.

Details

Voice parts are inferred using the minimal voice-leading distance algorithm of \insertCiteTymoczko2006;textualvoicer as implemented in the minVL package (see min_vl).

Value

A logical vector of the same length as contexts, with the ith element being TRUE if part overlap is found when the ith element of contexts moves to 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.