public class Bar
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
boolean |
countIn
true if this is a count-in bar
|
int |
duration
the duration of this bar accounting for time signature and tempo in force
|
int |
index
the index of the bar
|
int |
sequenceIndex
the index of this bar in the total sequence allowing for any repeats
Corresponds to the index where there are no repeats before this bar
|
Modifier and Type | Method and Description |
---|---|
Bar |
createCountIn()
create a count-in bar copy of this bar with the count-in flag set and with a maximum of 4 beats
|
Part |
metronome()
get an artificial Part for a metronome in this bar
|
Part |
part(int partIndex)
get a Part in the score
|
java.lang.String |
toString() |
public final int index
public final int duration
public final boolean countIn
public final int sequenceIndex
public Bar createCountIn()
public Part part(int partIndex)
partIndex
- the part index - 0 is the top part in the scorepublic Part metronome()
public java.lang.String toString()
toString
in class java.lang.Object