Modifier and Type | Field and Description |
---|---|
protected Rational |
bracketProportion
Proportion introduced by this very bracket.
|
protected boolean |
convenient
Whether this bracket is also for convenience = realizes an odd numerator,
not denominator.
|
protected PrimeFactors |
effectiveDenomFactors
Convencience cache, all prime factors of the denominator, without powers of two FIXME CHECK.
|
protected Rational |
effectiveProportion
Proportion to be applied to all nodes below this bracket.
|
protected Rational |
endTime
End time point (relative to 0.0 as start point of the measure(=top-level node),
i.e.
|
protected @Opt MTree.EssentialBracket |
predec
The next higher (relevant, non-vanishing) bracket covering this node.
|
protected boolean |
singleton
Whether this bracket spans only one single node.
|
protected boolean |
vanishing
Whether the bracket vanishes iff subnodes are printed.
|
Constructor and Description |
---|
EssentialBracket(@Opt MTree.EssentialBracket predec,
int bracketDenominator,
int bracketEnumerator,
Rational endTime,
boolean singleton)
Effekt of an EB: multiply the written duration (=note symbols=note heads, flags etc.)
by proportion n/d to get the meant duration.
|
EssentialBracket(@Opt MTree.EssentialBracket predec,
int bracketDenominator,
Rational endTime,
boolean singleton)
Effekt of an EB: multiply the written duration (=note symbols=note heads, flags etc.)
by proportion n/d to get the meant duration.
|
Modifier and Type | Method and Description |
---|---|
(package private) MTree.EssentialBracket |
doclone()
Deliver a clone with all fields copied.
|
String |
toString()
Give a symbolic text representation for debugging.
|
@Opt protected @Opt MTree.EssentialBracket predec
protected final Rational effectiveProportion
bracketProportion
of this bracket and all brackets atop.
All notated time value symbols (note heads, flags etc.) must be
multiplied by this proportion to get the intedend duration value.protected final Rational bracketProportion
effectiveProportion
.)protected final Rational endTime
protected final boolean singleton
protected final boolean convenient
protected boolean vanishing
protected PrimeFactors effectiveDenomFactors
public EssentialBracket(@Opt @Opt MTree.EssentialBracket predec, int bracketDenominator, int bracketEnumerator, Rational endTime, boolean singleton)
d and n are given explicity, n must not be even.
(For more simple EBs with only a clean power of two as n use
#EssentialBracket(EssentialBracket,int,Rational,boolean)
.)
So this constructor delivers
an "essential" bracket, which is "also convenient", like "|-5:7-|".
predec
- the next higher (relevant, non-vanishing) bracket covering this node.bracketDenominator
- the value "d", i.e. the divider of the durations.bracketEnumerator
- the value "n", i.e. the numerator of the rational
giving the proportion.endTime
- position in the measure where this bracket ends.singleton
- whether this bracket spans only one single node (in very
modern notation styles, like "1/4+1/6").public EssentialBracket(@Opt @Opt MTree.EssentialBracket predec, int bracketDenominator, Rational endTime, boolean singleton)
The numerator "n" of the proportion is set to the nearest_power_of_two: d=3 -> 2/3, d=5 => 4/5, d=7 => 8/7.
predec
- the next higher (relevant, non-vanishing) bracket covering this node.bracketDenominator
- the value "d", i.e. the divider of the durations.endTime
- position in the measure where this bracket ends.endTime
- position in the measure where this bracket ends.singleton
- whether this bracket spans only one single node (in very
modern notation styles).public String toString()
MTree.EssentialBracket doclone()