| vl_dist | R Documentation |
Using the chosen method to measure distance, determines how far
apart two scales are in voice-leading space.
vl_dist(
set_1,
set_2,
method = c("taxicab", "euclidean", "chebyshev", "hamming"),
rounder = 10
)
set_1, set_2 |
Numeric vectors of pitch-classes in the sets. Must be of same length. |
method |
What distance metric should be used? Defaults to |
rounder |
Numeric (expected integer), defaults to |
Numeric: distance between set_1 and set_2
c_major <- c(0, 4, 7)
a_minor_63 <- c(0, 4, 9)
f_minor_64 <- c(0, 5, 8)
vl_dist(c_major, a_minor_63)
vl_dist(c_major, f_minor_64)
vl_dist(c_major, a_minor_63, method="euclidean")
vl_dist(c_major, f_minor_64, method="euclidean")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.