|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.org.toot.midi.sequence.TimeSignatureList
public class TimeSignatureList
A List of Time Signatures with methods to ease use
Constructor Summary | |
---|---|
TimeSignatureList(int resolution)
|
Method Summary | |
---|---|
boolean |
add(javax.sound.midi.MidiEvent event)
|
java.util.Iterator |
beatIterator(long tick)
|
int |
getBeatsPerBar(int index)
|
int |
getBeatsPerBar(long tick)
|
javax.sound.midi.MidiEvent |
getEvent(int index)
|
int |
getIndex(long tick)
Return the index of the time signature for this tick, or -1 |
int |
getIndex(SequencePosition position)
Return the index of the time signature for this position, or -1 |
SequencePosition |
getPosition(long tick)
Return a SequencePosition representing the tick |
int |
getStartBar(int index)
With this we can linearise each time signature relative to the preceeding integration of bars |
long |
getTick(int index)
|
long |
getTick(SequencePosition position)
The inverse of getPosition. |
void |
setBarOffset(int offset)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimeSignatureList(int resolution)
Method Detail |
---|
public boolean add(javax.sound.midi.MidiEvent event)
public int getIndex(long tick)
public int getIndex(SequencePosition position)
public void setBarOffset(int offset)
public SequencePosition getPosition(long tick)
public long getTick(SequencePosition position)
public long getTick(int index)
public int getStartBar(int index)
public int getBeatsPerBar(int index)
public int getBeatsPerBar(long tick)
public javax.sound.midi.MidiEvent getEvent(int index)
public java.util.Iterator beatIterator(long tick)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |