public abstract class DefaultMetroEvent extends java.lang.Object implements MetroEvent
BAR_OFFSET_COMPARATOR
Constructor and Description |
---|
DefaultMetroEvent(java.lang.String typeName,
double barOffset) |
DefaultMetroEvent(java.lang.String typeName,
int barOffsetInFrames) |
Modifier and Type | Method and Description |
---|---|
void |
dumpProc(java.lang.String prefix,
java.lang.StringBuilder sb) |
double |
getBarOffset() |
int |
getBarOffsetInFrames() |
java.lang.String |
getTypeName() |
boolean |
isBetween(double from,
double to) |
boolean |
isBetweenInFrames(int from,
int to)
Check if the position of this event is inside the duration specified in the
parameter.
|
void |
prepareBarOffset(int barLengthInFrames) |
void |
prepareBarOffsetInFrames(int barLengthInFrames) |
void |
setBarOffset(double barOffset) |
void |
setBarOffsetInFrames(int barOffsetInFrames) |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
process
dump
public DefaultMetroEvent(java.lang.String typeName, double barOffset)
public DefaultMetroEvent(java.lang.String typeName, int barOffsetInFrames)
public java.lang.String getTypeName()
getTypeName
in interface MetroEventDumper
public final double getBarOffset()
getBarOffset
in interface MetroEvent
public void setBarOffset(double barOffset)
setBarOffset
in interface MetroEvent
public final void prepareBarOffset(int barLengthInFrames)
prepareBarOffset
in interface MetroEvent
public final boolean isBetween(double from, double to)
isBetween
in interface MetroEvent
public final int getBarOffsetInFrames()
getBarOffsetInFrames
in interface MetroEventInFrames
public void setBarOffsetInFrames(int barOffsetInFrames)
setBarOffsetInFrames
in interface MetroEventInFrames
public void prepareBarOffsetInFrames(int barLengthInFrames)
prepareBarOffsetInFrames
in interface MetroEventInFrames
public boolean isBetweenInFrames(int from, int to)
MetroEventInFrames
MetroTrack.progressCursor(int, List)
for further
information.
This methods is called as a callback of JACKAudio processing; this method
should return as soon as possible. The heavy processing that blocks for
longer time than the current setting of JACK's frame rate causes JACK to
XRUN.isBetweenInFrames
in interface MetroEventInFrames
from
- Specifies the beginning point of the duration to check. The value
is inclusive.to
- Specifies the end point of the duration to check. The value is
exclusive.true
if this event is inside the duration.public void dumpProc(java.lang.String prefix, java.lang.StringBuilder sb)
dumpProc
in interface MetroDumper
public java.lang.String toString()
toString
in class java.lang.Object