dist_below_bottom: Distance below bottom

Description Usage Arguments Note

View source: R/cf-dist.R

Description

Defines and returns a voicer feature, suitable for passing to the features argument of voice_opt, that computes the extent to which a chord spans below a predefined pitch height specified in the bottom argument, in semitones. If the chord does not span below bottom, then the function returns 0. The resulting function takes one argument, x, corresponding to a chord represented as a numeric vector of MIDI note numbers, without duplicates, sorted in ascending order.

Usage

1

Arguments

bottom

(Numeric scalar) The pitch height to which the chord is compared, specified as a MIDI note number where 60 corresponds to middle C.

Note

The resulting function is not vectorized.


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