public class MetrumSpecs extends Object
MTreeSpec
. This gives
the meaning of this name, up to any re-definition (in measure number order).Modifier and Type | Class and Description |
---|---|
static class |
MetrumSpecs.Name |
Modifier and Type | Field and Description |
---|---|
protected SortedMap<BigDecimal,Rational> |
barnum2duration
Complete map, for opimized retrieval
|
protected SortedMap<BigDecimal,MTreeSpec> |
barnum2mtree
Complete map, for opimized retrieval.
|
protected SortedMap<BigDecimal,Rational> |
barnum2phase
Partial map.
|
protected SortedMap<BigDecimal,Rational> |
barnum2startpos
complete map:
|
protected Map<Event,Rational> |
durations |
protected Map<Event,String> |
endrun |
protected Map<Event,MTreeSpec> |
mtrees |
Translet.Parser<MetrumSpecs.Name> |
nameParser |
protected Map<Event,MetrumSpecs.Name> |
names |
Translet.Parser<?> |
parseMetrics |
protected Map<Event,String> |
run |
protected Map<Event,String> |
runrun |
Constructor and Description |
---|
MetrumSpecs() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
barnumShouldBeBroken(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg,
Event e,
BigDecimal barnum) |
(package private) void |
barnumShouldBeInteger(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg,
Event e,
BigDecimal barnum) |
void |
checkAndCacheGlobalVoice(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg,
Iterable<TpTop> topTps,
Map<TpTop,BigDecimal> tp2barnum,
Vox mainVox)
first step: every metrum name must have a preceding definition: check and expand.
|
(package private) void |
checkNameConsistency(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg,
Event e,
MetrumSpecs.Name name,
MTreeSpec mtree) |
(package private) void |
checkNotTop(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg,
Vox voice,
boolean isMain)
FIXME unvollständige takte aber doch noch erlaubt !?!
|
void |
expandLocalVoice(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg,
Iterable<TpTop> topTps,
Map<TpTop,BigDecimal> tp2barnum,
Vox globalVoice,
Vox vox)
Distribute a local metric definition in "mtrees" to any subsequent measure
(only those which have a TpTop-Event!), as long as it is "running".
|
MTreeSpec |
getMTree(Vox vox,
Event event) |
MTreeSpec |
getMTree(Vox vox,
TpTop tpTop)
ATTENTION, only toTops are allowed in which an EVENT is defined!
All other measures are NOT expanded above!
|
static boolean |
isInteger(BigDecimal b) |
protected Map<Event,MetrumSpecs.Name> names
public final Translet.Parser<MetrumSpecs.Name> nameParser
public final Translet.Parser<?> parseMetrics
protected SortedMap<BigDecimal,MTreeSpec> barnum2mtree
(Vox, Event)
and
(Vox, TpTop)
additionally consider mtrees
.protected SortedMap<BigDecimal,Rational> barnum2duration
protected SortedMap<BigDecimal,Rational> barnum2startpos
protected SortedMap<BigDecimal,Rational> barnum2phase
public void checkAndCacheGlobalVoice(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, Iterable<TpTop> topTps, Map<TpTop,BigDecimal> tp2barnum, Vox mainVox)
public static boolean isInteger(BigDecimal b)
void barnumShouldBeInteger(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, Event e, BigDecimal barnum)
void barnumShouldBeBroken(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, Event e, BigDecimal barnum)
public void expandLocalVoice(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, Iterable<TpTop> topTps, Map<TpTop,BigDecimal> tp2barnum, Vox globalVoice, Vox vox)
void checkNameConsistency(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, Event e, MetrumSpecs.Name name, MTreeSpec mtree)
void checkNotTop(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, Vox voice, boolean isMain)
public MTreeSpec getMTree(Vox vox, TpTop tpTop)