Package eu.bandm.music.comp
Class Fields.Item
java.lang.Object
eu.bandm.music.comp.Fields.Item
- Enclosing class:
- Fields
Each Item represents one construction step of a field.
-
Field Summary
Modifier and TypeFieldDescription(package private) final int
The number of sounding pitch classes, minus one.(package private) final int
The pitch class which is added by this step.(package private) final @Opt Fields.Item
The preceding field, which is enhanced by this step.The set of required intervals, that are those allowed intervals which do not yet appear. -
Constructor Summary
ConstructorDescriptionItem
(Fields.Item pre, int interval) Constructor for a derivation step which enhances the field by adding a further pitch class on the top of an existing field.Constructor for the root item which represents the starting pitch class (symbolically =0), has no predecessor and requires all intervals. -
Method Summary
Modifier and TypeMethodDescription(package private) boolean
isUsed
(int i) Return whether the pitch class is already present somewhere in the field.
-
Field Details
-
pre
The preceding field, which is enhanced by this step. -
pos
final int posThe pitch class which is added by this step. -
level
final int levelThe number of sounding pitch classes, minus one. -
requiredIntervals
The set of required intervals, that are those allowed intervals which do not yet appear.
-
-
Constructor Details
-
Item
Constructor for the root item which represents the starting pitch class (symbolically =0), has no predecessor and requires all intervals. -
Item
Item(Fields.Item pre, int interval) Constructor for a derivation step which enhances the field by adding a further pitch class on the top of an existing field.- Parameters:
pre
- the predessor field.interval
- by which the top pitch of the "pre" field shall be topped.
-
-
Method Details
-
isUsed
boolean isUsed(int i) Return whether the pitch class is already present somewhere in the field.
-