public class DefaultMetroEventMidiEvent extends DefaultMetroEvent implements MetroMidiEvent, MetroEvent
COMPARATOR
BAR_OFFSET_COMPARATOR
Constructor and Description |
---|
DefaultMetroEventMidiEvent(java.lang.String id,
double offset,
MetroPort outputPort,
byte[] data) |
DefaultMetroEventMidiEvent(java.lang.String id,
int offsetInFrames,
MetroPort outputPort,
byte[] data) |
Modifier and Type | Method and Description |
---|---|
void |
calcMidiOffset(int cursor) |
void |
dumpProc(java.lang.String prefix,
java.lang.StringBuilder sb) |
byte[] |
getMidiData() |
int |
getMidiOffset() |
MetroPort |
getPort() |
void |
moveMidiOffset(int offset) |
void |
process(Metro metro,
int cursor)
Defines the procedure to execute when this event is activated.
|
void |
setMidiData(byte[] midiData) |
void |
setMidiOffset(int midiOffset) |
void |
setPort(MetroPort port) |
getBarOffset, getBarOffsetInFrames, getTypeName, isBetween, isBetweenInFrames, prepareBarOffset, prepareBarOffsetInFrames, setBarOffset, setBarOffsetInFrames, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
compare, compareTo
getBarOffset, isBetween, prepareBarOffset, setBarOffset
getBarOffsetInFrames, isBetweenInFrames, prepareBarOffsetInFrames, setBarOffsetInFrames
getTypeName
dump
public DefaultMetroEventMidiEvent(java.lang.String id, double offset, MetroPort outputPort, byte[] data)
public DefaultMetroEventMidiEvent(java.lang.String id, int offsetInFrames, MetroPort outputPort, byte[] data)
public final int getMidiOffset()
getMidiOffset
in interface MetroMidiEvent
public final void setMidiOffset(int midiOffset)
setMidiOffset
in interface MetroMidiEvent
public void moveMidiOffset(int offset)
moveMidiOffset
in interface MetroMidiEvent
public void calcMidiOffset(int cursor)
public final MetroPort getPort()
getPort
in interface MetroMidiEvent
public void setPort(MetroPort port)
setPort
in interface MetroMidiEvent
public byte[] getMidiData()
getMidiData
in interface MetroMidiEvent
public void setMidiData(byte[] midiData)
setMidiData
in interface MetroMidiEvent
public void process(Metro metro, int cursor)
MetroEventProcess
#between(int, int)
returned true
.
See 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.process
in interface MetroEventProcess
metro
- The Metro instance which is the owner of this event.cursor
- TODOpublic void dumpProc(java.lang.String prefix, java.lang.StringBuilder sb)
dumpProc
in interface MetroDumper
dumpProc
in class DefaultMetroEvent