Learn R Programming

musicMCT (version 0.2.0)

ianring: Look up a scale at Ian Ring's Exciting Universe of Music Theory

Description

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.

Usage

ianring(set)

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.

Arguments

set

Numeric vector of pitch-classes in the set

Examples

Run this code
c_major <- c(0, 2, 4, 5, 7, 9, 11)
c_major_value <- ianring(c_major)
print(c_major_value)
# And indeed you should find information about the major scale
# at https://ianring.com/musictheory/scales/2741

if (FALSE) { # interactive()
ianring(c(0, 2, 3, 7, 8))
}

Run the code above in your browser using DataLab