dist_above_top: Distance above top

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 above a predefined pitch height specified in the top argument, in semitones. If the chord does not span above top, 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

top

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