subset_varieties {musicMCT} | R Documentation |
Specific varieties of scalar subsets given a generic shape
Description
Considered mod 7, the traditional triads of a diatonic scale are all instances of the generic shape (0, 2, 4). They come in three varieties: major, minor, and diminished. This function lists the distinct varieties of any similarly defined generic shape which occur as subsets in some specified scale (or larger set).
Usage
subset_varieties(subsetdegrees, set, unique = TRUE, edo = 12, rounder = 10)
Arguments
subsetdegrees |
Vector of integers indicating the generic shape to use, e.g. |
set |
The scale to find subsets of, as a numeric vector |
unique |
Should each variety be listed only once? Defaults to |
edo |
Number of unit steps in an octave. Defaults to |
rounder |
Numeric (expected integer), defaults to |
Value
A numeric matrix whose columns represent the specific varieties of the subset
Examples
c_major_scale <- c(0, 2, 4, 5, 7, 9, 11)
double_harmonic_scale <- c(0, 1, 4, 5, 7, 8, 11)
subset_varieties(c(0, 2, 4), c_major_scale)
subset_varieties(c(0, 2, 4), c_major_scale, unique=FALSE)
subset_varieties(c(0, 2, 4), double_harmonic_scale)