Sequence
object. The duration of a tick is specified by the
timing information contained in the MIDI file or Sequence
object.
In Java Sound, MidiEvent
objects are typically contained in a
Track
, and Tracks
are likewise contained in a
Sequence
.
Modifier and Type | Field and Description |
---|---|
private final MidiMessage | message
The MIDI message for this event. |
private long | tick
The tick value for this event. |
Access | Constructor and Description |
---|---|
public | MidiEvent(MidiMessage
the MIDI message contained in the event message, long the time-stamp for the event, in MIDI ticks tick)Constructs a new |
Modifier and Type | Method and Description |
---|---|
public MidiMessage | |
public long | Returns: the time-stamp for the event, in MIDI ticksObtains the time-stamp for the event, in MIDI ticks. |
public void | setTick(long
the new time-stamp, in MIDI ticks tick)Sets the time-stamp for the event, in MIDI ticks. |
message | back to summary |
---|---|
private final MidiMessage message The MIDI message for this event. |
tick | back to summary |
---|---|
private long tick The tick value for this event. |
MidiEvent | back to summary |
---|---|
public MidiEvent(MidiMessage message, long tick) Constructs a new
|
getMessage | back to summary |
---|---|
public MidiMessage getMessage() Obtains the MIDI message contained in the event.
|
getTick | back to summary |
---|---|
public long getTick() Obtains the time-stamp for the event, in MIDI ticks.
|
setTick | back to summary |
---|---|
public void setTick(long tick) Sets the time-stamp for the event, in MIDI ticks.
|