Modifier and Type | Class and Description |
---|---|
class |
MSplitter.Result.WriteOut
This local class performs serialization of a rhythm representation, including
the opening and closing of n-plet-brackets in a minimal fashion.
|
Modifier and Type | Field and Description |
---|---|
protected Set<MTree> |
additionalProportions
Recognized dotted structures which possibly require an additional proportion.
|
protected List<QualifiedRational> |
eventStarts
The original input to the splitter process.
|
protected List<List<MTree>> |
initialCoverage
The intermediately calculated IC.
|
protected Set<MTree> |
printed
The result: Set of the nodes, the start points of which carry a note symbol.
|
protected Map<MTree,StemEnd> |
stemEnds
The beams of the printed note symbols.
|
protected Map<MTree,Rational> |
summedDuration
Convenience cache: The duration represented by the printed note symbols coming
from MXs=merging transformations.
|
protected Map<MTree,RationalDuration.DottedBaseDuration> |
symbols
Cache for the note symbols for results of merging =
for a node which has eaten some of its followers.
|
Constructor and Description |
---|
Result(List<QualifiedRational> eventStarts)
Construct an instance with all result fields not yet set.
|
Modifier and Type | Method and Description |
---|---|
void |
dump()
Printing method for debugging and demonstration.
|
List<List<MTree>> |
get_InitialCoverage()
Return the initial coverage calculated during the msplit process.
|
protected StemEnd |
getStemEnd(MTree node)
Get the stem end (left and right long and short beams) for the given node.
|
protected void |
sumUp()
Add the durations of all nodes not being printed to their predecessor.
|
protected final List<QualifiedRational> eventStarts
protected final Set<MTree> printed
protected final Map<MTree,Rational> summedDuration
protected final Map<MTree,RationalDuration.DottedBaseDuration> symbols
public Result(List<QualifiedRational> eventStarts)
protected StemEnd getStemEnd(MTree node)
protected void sumUp()
summedDuration
only if it the result of
a merging transformation.
So it holds that "domain(summedDuration) subsetEq printed".
Create a new StemEnd
for the printed node, if necessary.
(The sum values are somehow redundant and only for the convenience of the caller.)public void dump()