public class BarIterator extends java.lang.Object implements java.util.Iterator<BarIterator.Bar>
Modifier and Type | Class and Description |
---|---|
class |
BarIterator.Bar
Bar returns each Part in the score and also an artificial metronome part which
returns a dummy note for each beat in the bar accounting for time signature and tempo changes
|
class |
BarIterator.Part
Part returns a NoteIterator for a single Bar
|
Modifier and Type | Method and Description |
---|---|
boolean |
changeToBar(int barIndex)
change to the given bar index.
|
boolean |
countIn() |
int |
currentBarIndex() |
boolean |
hasLast() |
boolean |
hasNext() |
BarIterator.Bar |
last() |
BarIterator.Bar |
next() |
int |
nextBarIndex() |
void |
remove()
unsupported for immutable list
|
int |
sequenceIndex() |
public boolean hasNext()
hasNext
in interface java.util.Iterator<BarIterator.Bar>
public BarIterator.Bar next()
next
in interface java.util.Iterator<BarIterator.Bar>
public boolean hasLast()
public BarIterator.Bar last()
public boolean countIn()
public int sequenceIndex()
public int currentBarIndex()
public int nextBarIndex()
public boolean changeToBar(int barIndex)
barIndex
- the index of the bar to move to (0 is the first bar in the score)public void remove()
remove
in interface java.util.Iterator<BarIterator.Bar>