The function ineqsym() produces scales of different colors which have equivalent scalar properties.
The hyperplane arrangements of MCT have three types of symmetry, which allows
us to find scales at different but equivalent points in the arrangement.
Such scales will be nearly structurally identical in most senses although
their specific intervals will be rather different. (See Sherrill 2026, "Symmetries,"
doi:10.1007/978-3-032-27827-2_5
, for more information.) The function ineqsym_index() finds which
symmetries of the hyperplane arrangement preserve an input scale;
ineqsym_degree() counts how many symmetries the scale has.
Arguments
- set
Numeric vector of pitch-classes in the set. Defaults to
NULL, in which casecardmust be specified.- a
Integer: controls permutations of generic intervals. Must be coprime to the size of the set. Defaults to
1.- b
Integer: controls modal rotation. Defaults to
0.- card
Integer: cardinality of the set to permute. Defaults to
NULLand will only be used ifsetis not entered.- involution
Boolean: controls involutional symmetry. Defaults to
FALSE.- edo
Number of unit steps in an octave. Defaults to
12.- type
For
ineqsym_index()andineqsym_degree(), whether the symmetry needs to preserve the precise intervallic structure of a set itself (up to transposition) or merely its color. Should be a string,"set"or"color"; defaults to"set".- rounder
Numeric (expected integer), defaults to
10: number of decimal places to round to when testing for equality.
Value
For ineqsym(), a numeric vector representing a scale of same length as set.
Default parameters determine the identity symmetry and will return
set itself. If set is left as its default NULL value, the function returns
instead the card-by-card permutation matrix that implements the symmetry.
For ineqsym_index(), a data frame representing the symmetries that fix the input. Each row
corresponds to one symmetry; columns indicate the settings of the parameters a, b, and
involution. For ineqsym_degree(), a single numeric value that counts how many distinct
symmetries the input has.
Details
Two symmetries of the MCT hyperplane arrangement are familiar.
One is modal "rotation":
two modes of the same scale must have equivalent structures, by the
defining relations of the theory. The parameter b controls these rotations.
The second familiar symmetry is involution (see "Modal Color Theory," 32).
Set parameter involution to TRUE to apply this symmetry. The more
interesting symmetry of the MCT arrangements is controlled by parameter a.
This symmetry allows us to permute the roles of the scale's generic intervals
in its scalar makeup. For instance, non-degenerate well-formed scales (see
iswellformed() are all generated by a particular generic interval. The
familiar diatonic scale is generated by its generic fourths, whereas
another well-formed scale like (0, 2, 3, 5, 6, 7, 9) in 10edo (with step-word
LSLSSLS) is generated by its generic sixths. We can permute the hyperplanes
of the heptachordal MCT arrangement so that the overall structure is
preserved but the diatonic scale is mapped onto LSLSSLS. In general, the
permutations of ineqsym() allow us to map any non-degenerate well-formed
scale onto any other: they form an orbit under the symmetries of the space.
This gives another sense in which "well-formedness" is a large family
of scale structures. That sense generalizes to all scales, not just ones
that are highly regular like well-formed scales.
In short, ineqsym() preserves many scalar properties, including:
brightnessgraph()structureisgwf()and a fortioriiswellformed()Number and respective properties of adjacent colors
spectrumcount()up to permutation of the values
Examples
wt_plus_1 <- sc(7,33)
equiv_scale <- ineqsym(wt_plus_1, 3, 2)
both_scales <- cbind(wt_plus_1, equiv_scale)
freedoms <- apply(both_scales, 2, howfree)
evennesses <- round(apply(both_scales, 2, evenness), 3)
svzeroes <- apply(both_scales, 2, countsvzeroes)
ratios <- round(apply(both_scales, 2, ratio), 3)
spectra <- apply(apply(both_scales, 2, spectrumcount), 2, toString)
cbind(freedoms, evennesses, svzeroes, ratios, spectra)
#> freedoms evennesses svzeroes ratios spectra
#> wt_plus_1 "1" "1.195" "16" "1.5" "2, 3, 3, 3, 3, 2"
#> equiv_scale "1" "1.195" "16" "1.5" "3, 3, 2, 2, 3, 3"
brightnessgraph(wt_plus_1)
brightnessgraph(equiv_scale)
# The twelve-equal major triad is fairly symmetrical:
ineqsym_index(c(0, 4, 7))
#> a b inv
#> 1 1 0 FALSE
#> 2 2 1 FALSE
# But its just equivalent lacks these symmetries as a set:
just_major <- j(1, 3, 5)
ineqsym_index(just_major)
#> a b inv
#> 1 1 0 FALSE
just_major
#> [1] 0.000000 3.863137 7.019550
ineqsym(just_major, a=2, b=2) # This was a symmetry of equal-tempered major
#> [1] -0.980450 3.863137 8.000000
# It nonetheless still has the same symmetries as (0, 4, 7) as a color:
ineqsym_index(just_major, type="color")
#> a b inv
#> 1 1 0 FALSE
#> 2 2 1 FALSE
ineqsym_degree(just_major, type="color")
#> [1] 2
