50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


musicMCT (version 0.1.2)

tnprime: Transposition class of a given pc-set

Description

Uses Rahn's algorithm to calculate the best normal order for the transposition class represented by a given set. Reflects transpositional but not inversional equivalence, i.e. all major triads return (0, 4, 7) and all minor triads return (0, 3, 7).

Usage

tnprime(set, edo = 12, rounder = 10)

Value

Numeric vector of same length as set representing the set's Tn-prime form

Arguments

set

Numeric vector of pitch-classes in the set

edo

Number of unit steps in an octave. Defaults to 12.

rounder

Numeric (expected integer), defaults to 10: number of decimal places to round to when testing for equality.

Examples

Run this code
tnprime(c(2, 6, 9))
tnprime(c(0, 3, 6, 9, 14), edo=16)

Run the code above in your browser using DataLab