exposed_outer_octaves: Exposed outer octaves

Description Usage Arguments Details Value Note

Description

Checks for exposed octaves within the outer voices of a chord transition.

Usage

1
exposed_outer_octaves(contexts, continuation, reverse = FALSE)

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.

reverse

(Logical scalar) Whether to reverse the computation so that contexts instead corresponds to a list of continuations and continuation corresponds to a single context.

Details

Exposed octaves, as defined here, occur when the chord transition reaches a chord with a (potentially compound) octave between the bass and treble voices that is approached by parallel motion and with both voices moving by more than two semitones.

Value

A logical vector of the same length as contexts, with the ith element being TRUE if exposed octaves 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.


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