Ian Ring's website The Exciting Universe of Music Theory is a comprehensive and useful compilation of information about pitch-class sets in twelve-tone equal temperament. It tracks many properties that musicMCT is unlikely to duplicate, so this function opens the corresponding page for a pc-set in your browser. This only works for sets in 12-edo which include pitch-class 0.
Arguments
- set
Numeric vector of pitch-classes in the set
- is_interactive
Is the function being called in an interactive setting where it makes sense to open a browser window? Defaults to
NULL, in which caseinteractive()is used to determine the answer.
Value
Invisibly, the integer which Ring's site uses to index the
input set. The main purpose of the function is its side effect of
opening a page of Ring's site in a browser.
Examples
c_major <- c(0, 2, 4, 5, 7, 9, 11)
c_major_value <- ianring(c_major, is_interactive=FALSE)
print(c_major_value)
#> [1] 2741
# And indeed you should find information about the major scale
# at https://ianring.com/musictheory/scales/2741
if (FALSE) { # interactive()
# Set is_interactive to TRUE below to open the website in a
# browser window.
ianring(c(0, 2, 3, 7, 8), is_interactive=FALSE)
}
