int_vec | R Documentation |
Computes a chord's interval vector, after \insertCiteParncutt2018;textualhrep.
int_vec(x)
## S3 method for class 'pc_set'
int_vec(x)
## Default S3 method:
int_vec(x)
## S3 method for class 'int_vec'
as.numeric(x, ...)
## S3 method for class 'int_vec'
as.character(x, ...)
x |
Object to analyse. |
... |
Further arguments passed to other methods. |
An interval vector of class "int_vec", describing how often each pitch-class interval appears in a chord. There are six possible interval classes: 1, 2, 3, 4, 5, and 6 semitones. \insertCiteParncutt2018;textualhrep cite \insertCiteForte1977;textualhrep for this technique.
An integer vector of length 6, where the ith element indicates the number of times that the pitch-class interval i is found in the chord.
int_vec(c(60, 64, 67)) # major triad
int_vec(c(60, 63, 66)) # diminished triad
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.