context("test-rationalise_chord")
test_that("examples", {
expect_equal(
rationalise_chord(hrep::pi_chord(c(0, 4, 7)), tonic = 0),
rational_chord(matrix(c(1, 5, 3,
1, 4, 2),
nrow = 2, byrow = TRUE))
)
expect_equal(
rationalise_chord(hrep::pi_chord(c(60, 64, 67)), tonic = 0),
rational_chord(matrix(c(1, 5, 3,
1, 4, 2),
nrow = 2, byrow = TRUE))
)
expect_equal(
rationalise_chord(hrep::pi_chord(c(60, 64, 67 + 12)), tonic = 0),
rational_chord(matrix(c(1, 5, 3,
1, 4, 1),
nrow = 2, byrow = TRUE))
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.