Package eu.bandm.music.entities
Class PcSet
java.lang.Object
eu.bandm.music.entities.PcSet
Abstract sets of pitch classes and pc intervals.
A "Pitch class" in the most general sense is a musical pitch, in a particular
theoretic framework, modulo octave.
A "Pc Set" in the sense of the works of Forte et.al. is a power set of the numbers
0 to 11, which represents some abstract selection of pitch classes.
This can be instantiated for instance
by assigning a pitch class of the twelve tone equally tempered tuning system to the
number zero.
Or it can be used as directly instantiated, by taking the definition "0 <-> c" als
implicit.
All instances returned by "valueOf(..)" are cons-cached and so "==" and ".equals(..)" are equivalent.
A "Pc Set Class" means the "common form" of a collection of pc sets modulo rotation.
A pcSetClass is somehow an equivalent to "chord form" in older harmonic theories,
namely a equivalence class modulo rotation (and in particular theories also modulo inversion)
To identify a pcSetClass, different methods have been developed, which are
all somewhat arbitrary (Martino 1961, Carter 1967, Forte 1973, Rahn 1980, Nelson 2004
et alii).
The method applied here is more canonical from a mathematical point of view, naemly
taking the smallest integer interpretation of all rotations of a given bit set.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
Combines a micro clavir and a combo box with a list of named pcsets. -
Field Summary
Modifier and TypeFieldDescriptionstatic final PcSet
(package private) final int
Pitch classes contained.(package private) final String
Pitch classes contained.static final PcSet
Representer of the class of this instance.static final String
static final PcSet
static final int
static final String
(package private) final BitSet
Pitch classes contained.static final PcSet
-
Method Summary
Modifier and TypeMethodDescriptionadd
(int... pcs) void
int
asInt()
asString()
boolean
contains
(int i) getForm()
boolean
isEmpty()
pitches()
stream()
subtract
(int... pcs) toString()
static PcSet
valueOf
(int bits) static PcSet
static PcSet
static PcSet
valueOf
(String digits, MessageReceiver<SimpleMessage<?>> msg) static PcSet
static PcSet
valueOf
(Collection<Integer> ints)
-
Field Details
-
pitches
Pitch classes contained. -
asInt
final int asIntPitch classes contained. -
asString
Pitch classes contained. Enocded in the traditional A.Forte way: "T" for 10 and "E" for 11. (Hexadecimal it would by "A" and "B".) -
classRepresenter
Representer of the class of this instance. Null if it is itself this representer. -
set2class
-
int2instance
-
maxAsInt
public static final int maxAsInt- See Also:
-
empty
-
all
-
whiteKeys
-
blackKeys
-
duodecimalDigits_lowercase
- See Also:
-
NOCHANGE_NOMATCH
- See Also:
-
-
Method Details