Description Usage Arguments Value Note
View source: R/cf-diff-num-notes.R
Defines and returns a voicer
feature, suitable for passing
to the features
argument of voice_opt
,
that computes how much the number of notes in a chord voicing
differs from an ideal number of notes as specified by the
ideal_num_notes
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.
1 | diff_num_notes(ideal_num_notes)
|
ideal_num_notes |
(Numeric scalar) The ideal number of notes in the chord. |
A numeric scalar corresponding to the difference between
the number of notes in the chord and
an ideal number of notes as determined by the
ideal_num_notes
argument.
The resulting function is not vectorized.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.