Learn R Programming

musicMCT (version 0.1.2)

sc: Set class from Forte's list

Description

Given a cardinality and ordinal position, returns the (Rahn) prime form of the set class from Allen Forte's list in The Structure of Atonal Music (1973). Draws the information from hard-coded values in the package's data.

Usage

sc(card, num)

Value

Numeric vector of length card representing a pc-set of card notes.

Arguments

card

Integer value between 1 and 12 (inclusive) that indicates the number of distinct pitch-classes in the set class.

num

Ordinal number of the desired set class in Forte's list

Examples

Run this code
ait1 <- sc(4, 15)
ait2 <- sc(4, 29)

NB_rahn_prime_form <- sc(6, 31)
print(NB_rahn_prime_form)

Run the code above in your browser using DataLab