Description Usage Arguments Note
Defines and returns a voicer
feature, suitable for passing
to the features
argument of voice_opt
,
that compares the chord's mean pitch to a reference pitch
specified in the middle
argument.
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,
and returns an unsigned distance in semitones.
1 | dist_from_middle(middle)
|
middle |
(Numeric scalar) The pitch height to which the chord is compared, specified as a MIDI note number where 60 corresponds to middle C. |
The resulting function is not vectorized.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.