Package eu.bandm.music.entities
Class MSplitter.Result
java.lang.Object
eu.bandm.music.entities.MSplitter.Result
- Enclosing class:
- MSplitter
Represents one result of processing a sequence of qualified durations.
It contains a set of all nodes which must be printed, and, for convenience,
a map from each such node to the total duration which it must represent.
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
Display the result of a metric split by displaying the sequence of call-back invocations.class
This local class performs serialization of a rhythm representation, including the opening and closing of n-plet-brackets in a minimal fashion. -
Field Summary
Modifier and TypeFieldDescriptionRecognized dotted structures which possibly require an additional proportion.protected final List<QualifiedRational>
The original input to the splitter process.The intermediately calculated IC.protected final Map<MTree,
MTree.Printable> FIXME DOCUThe result: Set of the nodes, the start points of which carry a note symbol.The beams of the printed note symbols.Convenience cache: The duration represented by the printed note symbols coming from MXs=merging transformations. -
Constructor Summary
ConstructorDescriptionResult
(List<QualifiedRational> eventStarts) Construct an instance with all result fields not yet set. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Creates newStemEnd
} according to the connection situation between neighbour stems.(package private) void
adjustBeamsLocally
(MTree node, StemEnd se) Remove stemlets considered redundant according toMTree.parameters
.(package private) void
countPrintedChilds
(int[] result, MTree left, MTree right) void
dump()
Printing method for debugging and demonstration.void
Display the result of a metric split by displaying the sequence of call-back invocations toSystem.err
.void
Display the result of a metric split by displaying the sequence of call-back invocations.Return the initial coverage calculated during the msplit process.int
Returns the maximal level of nesting ofMTree.EssentialBracket
s under this node.getEventStart
(int i) Get the event start value.Get an unmodifiable copy of the original event starts.protected StemEnd
getStemEnd
(MTree node) Get the stem end (left and right long and short beams) for the given node.(package private) void
protected void
sumUp()
Add the durations of all nodes not being printed to their predecessor.
-
Field Details
-
eventStarts
The original input to the splitter process. -
initialCoverage
The intermediately calculated IC. -
printed
The result: Set of the nodes, the start points of which carry a note symbol. -
summedDuration
Convenience cache: The duration represented by the printed note symbols coming from MXs=merging transformations. -
stemEnds
The beams of the printed note symbols. -
printables_transformed
FIXME DOCU -
additionalProportions
Recognized dotted structures which possibly require an additional proportion. The first node is memorized here. FIXME NOT YET SUPPORTED
-
-
Constructor Details
-
Result
Construct an instance with all result fields not yet set.
-
-
Method Details
-
getStemEnd
Get the stem end (left and right long and short beams) for the given node. The map in this result overrides the genuine beams from the MTree specification. -
getEventStarts
Get an unmodifiable copy of the original event starts. -
getEventStart
Get the event start value. -
getBracketDepth
public int getBracketDepth()Returns the maximal level of nesting ofMTree.EssentialBracket
s under this node. -
sumUp
protected void sumUp()Add the durations of all nodes not being printed to their predecessor. A node appears as a key insummedDuration
only if it the result of a merging transformation. So it holds that "domain(summedDuration) subsetEq printed". Create a newStemEnd
for the printed node, if necessary. (The sum values are somehow redundant and only for the convenience of the caller.) -
putSum
-
adjustBeams
protected void adjustBeams()Creates newStemEnd
} according to the connection situation between neighbour stems. Genuine beam modifications (in- and decrease of connections) is applied, according to the number of printed noted symbols. -
countPrintedChilds
-
adjustBeamsLocally
Remove stemlets considered redundant according toMTree.parameters
. Operates on the local data of one singleStemEnd
. -
dump
public void dump()Printing method for debugging and demonstration. -
get_InitialCoverage
Return the initial coverage calculated during the msplit process. -
dumpResult
Display the result of a metric split by displaying the sequence of call-back invocations. -
dumpResult
public void dumpResult()Display the result of a metric split by displaying the sequence of call-back invocations toSystem.err
. .
-