powered by
Rank, order and sort chords and notes by various definitions.
chord_rank(notes, pitch = c("min", "mean", "max"), ...)chord_order(notes, pitch = c("min", "mean", "max"), ...)chord_sort(notes, pitch = c("min", "mean", "max"), decreasing = FALSE, ...)
chord_order(notes, pitch = c("min", "mean", "max"), ...)
chord_sort(notes, pitch = c("min", "mean", "max"), decreasing = FALSE, ...)
integer for rank and order, character for sort
character, a noteworthy string.
character, how ranking of chords is determined; lowest pitch, mean pitch, or highest pitch.
additional arguments passed to rank() or order().
rank()
order()
logical, sort in decreasing order.
There are three options for comparing the relative pitch position of chords provided: comparison of the lowest or root note of each chord, the highest pitch note, or taking the mean of all notes in a chord.
x <- "a2 c a2 ceg ce_g cea" chord_rank(x, "min") chord_rank(x, "max") chord_rank(x, "mean") chord_order(x) chord_order(x, "mean") chord_sort(x, "mean")
Run the code above in your browser using DataLab