Package | Description |
---|---|
eu.bandm.music.entities |
All fundamental entities for modeling music.
|
Modifier and Type | Field and Description |
---|---|
protected MTree |
MCover.metricTree
The top-level metric tree (modelling the whole measure) as passed to
MCover.process(MTree, Parameters_approximate, Parameters_divide, List) . |
protected MTree |
MCover.MetricNotHitException.metricTree |
protected MTree |
MSplitter.metricTree
The growing metric tree.
|
protected MTree |
MKinds.MKind.mtree |
Modifier and Type | Field and Description |
---|---|
protected Set<MTree> |
MSplitter.Result.additionalProportions
Recognized dotted structures which possibly require an additional proportion.
|
(package private) List<List<MTree>> |
MCover.ic
The accumulator for the result; maps (via index) events to lists of MTree nodes.
|
protected List<List<MTree>> |
MSplitter.Result.initialCoverage
The intermediately calculated IC.
|
(package private) Map<MTree,MTree> |
MCover.newAlts
Synthesized alternatives for nodes.
|
(package private) Map<MTree,MTree> |
MCover.newAlts
Synthesized alternatives for nodes.
|
protected Map<MTree,List<MTree>> |
MSplitter.pause_displays
FIXME ????
|
protected Map<MTree,List<MTree>> |
MSplitter.pause_displays
FIXME ????
|
protected Set<MTree> |
MSplitter.Result.printed
The result: Set of the nodes, the start points of which carry a note symbol.
|
protected Map<MTree,List<MTree>> |
MSplitter.sound_displays
FIXME ????
|
protected Map<MTree,List<MTree>> |
MSplitter.sound_displays
FIXME ????
|
protected Map<MTree,StemEnd> |
MSplitter.Result.stemEnds
The beams of the printed note symbols.
|
protected Map<MTree,Rational> |
MSplitter.Result.summedDuration
Convenience cache: The duration represented by the printed note symbols coming
from MXs=merging transformations.
|
protected Map<MTree,RationalDuration.DottedBaseDuration> |
MSplitter.Result.symbols
Cache for the note symbols for results of merging =
for a node which has eaten some of its followers.
|
Modifier and Type | Method and Description |
---|---|
MTree |
MSplitter.get_metricTree()
Returns the metric tree in its current state, as modified by all preceding
metric splitting tasks.
|
static MTree |
MTree.install(MTreeSpec mt,
MTree.Parameters params)
Only factory method for a user to create an MTree.
|
protected MTree |
MCover.makeSyntheticAlternative(MTree mt,
int division)
Search if a synthetic alternative with this division already exists, otherwise
make one and memorize it for later tree insertion.
|
protected MTree |
MTree.self()
Necessary to avoid "unchecked cast" warning when returning "this" instance
in the parameterized superclass
MTree_ . |
Modifier and Type | Method and Description |
---|---|
(package private) List<MTree> |
MSplitter.find_symbol_sequence(MTree node,
Rational duration,
boolean isSound)
Convert a node into one or more notation symbols.
|
List<List<MTree>> |
MCover.get_ic()
Return the accumulated result, which maps events (by their index) to lists of nodes.
|
List<List<MTree>> |
MSplitter.Result.get_InitialCoverage()
Return the initial coverage calculated during the msplit process.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
MTree.Visitor.action(MTree mt)
Payload method to be overridden by user.
|
void |
MKinds.add(Location<XMLDocumentIdentifier> loc,
String name,
MTree mtree,
Map<String,String> reprs) |
(package private) void |
MCover.addNode(MTree mt,
int compareResult)
Store to the result the fact that the given arguments (node and event) are related.
|
protected void |
MTree.copyTreeValues(MTree fresh)
Copy the scalar values defined in this class into the argument, additionally to those
copied by
MTree_.copyTimeValues(MTree_) .Context pointers are not copied (.parent,.alternative, .subs.) |
protected void |
MCover.do1Alt(MTree mt)
Test to split the duration of one alternative (of possibly several), which all are
EXPLICIT nodes (=from MTS, not synthetic).
|
protected void |
MCover.doAlts(MTree mt)
Test the sub-nodes and the alternatives of a node which is not completely
in the current event interval, so some sub-nodes must be found to cover that interval.
|
protected void |
MCover.doApprox(MTree mt,
int index,
int upto,
boolean endIsHit)
One ore more event starts lie truely in the current node's interval,
partly with prime factors != 2.
|
protected void |
MCover.doFC_bin(MTree mt)
Here the bottom of the MTree is reached: only binary divisions are required,
all other primes factors have already been realized somewhere above.
|
protected void |
MCover.doFC_synt(MTree mt,
MStackingPlanner.Plan spontPlan)
Is only called if synthesizing is necessary.
|
protected void |
MCover.doFC_top(MTree mt)
Main method for finding the Initial MCover;
called once for the top node from
MCover.process(MTree,Parameters_approximate parameters_approximate,Parameters_divide,List) ,
and later repeatedly for different alternatives in the middle of
MCover.do1Alt(MTree) . |
protected void |
MCover.doSynthOrImplicit(MTree mt,
MStackingPlanner.Plan spontPlan)
The current event interval is truely included in that of the MTree node,
but there are no child nodes.
|
(package private) List<MTree> |
MSplitter.find_symbol_sequence(MTree node,
Rational duration,
boolean isSound)
Convert a node into one or more notation symbols.
|
protected StemEnd |
MSplitter.Result.getStemEnd(MTree node)
Get the stem end (left and right long and short beams) for the given node.
|
(package private) MStackingPlanner.Plan |
MStackingPlanner.makePlan(MTree mt,
int eventToProcess,
int upto,
List<Rational> limits)
Central service provider; is only called when synthesizing is necessary
(= to add a new alterative to "mt").
|
protected MTree |
MCover.makeSyntheticAlternative(MTree mt,
int division)
Search if a synthetic alternative with this division already exists, otherwise
make one and memorize it for later tree insertion.
|
static MCover |
MCover.process(MTree metricTree,
@Opt MCover.Parameters_approximate parameters_approximate,
@Opt MCover.Parameters_divide parameters_divide,
List<Rational> limits)
Main entry method:
Finds the lists of all completely covered and maximal nodes for a list of events.
|
static MCover |
MCover.process(MTree metricTree,
MCover.Parameters_approximate parameters_approximate,
@Opt MCover.Parameters_divide parameters_divide,
List<Rational> limits,
@Opt MStackingPlanner stackingPlanner)
Same functionality as
MCover.process(MTree,Parameters_approximate,Parameters_divide,List) ,
but a different bracket order stacking planner can be plugged in. |
protected void |
MSplitter.Result.WriteOut.testOpenBrackets(MTree start,
boolean printedNode)
Called for each node to open essential n-plet-brackets, iff necessary
for the following duration values.
|
abstract void |
MetricConsumer.WriteOut.writeOut(int index,
MTree node,
RationalDuration.DottedBaseDuration symbol,
Rational proportion,
StemEnd beams,
boolean isSound,
boolean isFirst,
boolean isLast)
Write out one symbol of an event.
|
abstract void |
MSplitter.Result.WriteOut.writeOut(int index,
MTree node,
RationalDuration.DottedBaseDuration symbol,
Rational proportion,
StemEnd beams,
boolean isSound,
boolean isFirst,
boolean isLast)
Write out one symbol of an event.
|
Modifier and Type | Method and Description |
---|---|
protected void |
MTree.do_collect_genuine_beams(StemEnd se_parent,
List<MTree> subtrees) |
protected void |
MSplitter.parseSiblingsAndDottings(List<MTree> irep,
boolean isPause,
Set<MTree> printThem,
Map<MTree,StemEnd> stemEnds)
Delivers all nodes which shall appear in the notation as a symbol, in the
set argumente "printThem".
|
protected void |
MSplitter.parseSiblingsAndDottings(List<MTree> irep,
boolean isPause,
Set<MTree> printThem,
Map<MTree,StemEnd> stemEnds)
Delivers all nodes which shall appear in the notation as a symbol, in the
set argumente "printThem".
|
protected void |
MSplitter.parseSiblingsAndDottings(List<MTree> irep,
boolean isPause,
Set<MTree> printThem,
Map<MTree,StemEnd> stemEnds)
Delivers all nodes which shall appear in the notation as a symbol, in the
set argumente "printThem".
|
(package private) void |
MSplitter.splitDots_withBeams(List<MTree> irep,
Set<MTree> printThem,
Map<MTree,StemEnd> stemEnds,
int dotCounts,
boolean dotCountsIsMax,
int startPos,
int endPos,
boolean leftNotRight,
boolean positiveDotting)
Add nodes from Initial Coverage to result, representing a sequence
of dotted values not exceeding maxDots.
|
(package private) void |
MSplitter.splitDots_withBeams(List<MTree> irep,
Set<MTree> printThem,
Map<MTree,StemEnd> stemEnds,
int dotCounts,
boolean dotCountsIsMax,
int startPos,
int endPos,
boolean leftNotRight,
boolean positiveDotting)
Add nodes from Initial Coverage to result, representing a sequence
of dotted values not exceeding maxDots.
|
(package private) void |
MSplitter.splitDots_withBeams(List<MTree> irep,
Set<MTree> printThem,
Map<MTree,StemEnd> stemEnds,
int dotCounts,
boolean dotCountsIsMax,
int startPos,
int endPos,
boolean leftNotRight,
boolean positiveDotting)
Add nodes from Initial Coverage to result, representing a sequence
of dotted values not exceeding maxDots.
|
protected boolean |
MSplitter.testForSyncopeAndHemiola(List<MTree> irep)
Returns whether the node list, representing one event, can be replaced
by one single symbol, due to syncope or hemiola rules.
|
protected void |
MSplitter.Result.WriteOut.x_writeOut(int index,
List<MTree> nodes,
Rational currentProportion,
boolean isSound,
boolean isFirst,
boolean isLast)
A wrapper which calls the real "writeout()" for a list of nodes,
which come from a cache.
|
Constructor and Description |
---|
MetricNotHitException(MTree metricTree,
Rational startPos) |
MKind(Location<XMLDocumentIdentifier> loc,
String shortName,
MTree mtree,
Map<String,String> backend_representations) |