public static class MetricTree.EssentialBracket extends Object
a) ,---3---, b) 7/12 3/4 / | \ / | \ \ ,---3--, ,-3-, 1/6 1/6 1/4 1/6 1/6 1/4 1/6In b) the brackets have to span two non-adjacent segments of child nodes. In a) the lower level brackets do NOT appear since the parent node requires a bracket for ITS OWN duration, which will be written anyhow.
7/4 / | \ ,----------------3--------------------, 7/12 [y]7/12 7/12 / | \ / | \ / | \ [x] ,---3---, ,---3---, ,---3---, 1/6 1/6 1/4 1/6 1/6 1/4 1/6 1/6 1/4Here the triplet at [x] must be cancelled whenever ANY uncle node (like [y]) will be written (because this requires the broad bracket, which implies the narrow one.) NOT YET IMPLEMENTED FIXME
Modifier and Type | Field and Description |
---|---|
protected boolean |
complete
whether the whole of the parent's duration is covered.
|
protected MetricTree |
context |
protected int |
count
Numbers of the child nodes in the sibling sequence where this EssentialBracket
is defined.
|
protected int |
endPos
Numbers of the child nodes in the sibling sequence where this EssentialBracket
is defined.
|
protected Rational |
endTime |
protected PrimeFactors |
primes
The new factors appearing here the first time (top-down).
|
protected Rational |
proportion |
protected int |
startPos
Numbers of the child nodes in the sibling sequence where this EssentialBracket
is defined.
|
Constructor and Description |
---|
EssentialBracket(MetricTree context,
PrimeFactors primes,
int startPos,
int endPos)
Prime factors give the proportion: if 1/d, then the 1 is
replaced by the nearest_power_of_two: 1/3 -> 2/3,
1/7 = 8/7.
Multiply written duration (=note symbols) by proportion n/d to get MEANT duration. |
Modifier and Type | Method and Description |
---|---|
int |
get_endPos() |
PrimeFactors |
get_primes() |
int |
get_startPos() |
String |
toString() |
protected final PrimeFactors primes
protected final int startPos
protected final int endPos
protected final int count
protected final Rational proportion
protected final Rational endTime
protected final MetricTree context
protected boolean complete
public EssentialBracket(MetricTree context, PrimeFactors primes, int startPos, int endPos)
public PrimeFactors get_primes()
public int get_startPos()
public int get_endPos()