|
Java™ Platform Standard Ed. 6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object extended by javax.sound.midi.MidiEvent
public class MidiEvent
MIDI events contain a MIDI message and a corresponding time-stamp
expressed in ticks, and can represent the MIDI event information
stored in a MIDI file or a object. The
duration of a tick is specified by the timing information contained
in the MIDI file or SequenceSequence object.
In Java Sound, MidiEvent objects are typically contained in a
, and TrackTracks are likewise
contained in a Sequence.
| Constructor Summary | |
|---|---|
MidiEvent(MidiMessage message,
long tick)
Constructs a new MidiEvent. |
|
| Method Summary | |
|---|---|
MidiMessage |
getMessage()
Obtains the MIDI message contained in the event. |
long |
getTick()
Obtains the time-stamp for the event, in MIDI ticks |
void |
setTick(long tick)
Sets the time-stamp for the event, in MIDI ticks |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MidiEvent(MidiMessage message, long tick)
MidiEvent.
message - the MIDI message contained in the eventtick - the time-stamp for the event, in MIDI ticks| Method Detail |
|---|
public MidiMessage getMessage()
public void setTick(long tick)
tick - the new time-stamp, in MIDI tickspublic long getTick()
|
Java™ Platform Standard Ed. 6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 1993, 2015, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
Scripting on this page tracks web page traffic, but does not change the content in any way.