public class MidiEvent extends Object
object. The duration of a tick is specified by the timing information contained in the MIDI file or
In Java Sound,
MidiEvent objects are typically contained in a
Tracks are likewise
contained in a
|Constructor and Description|
Constructs a new
|Modifier and Type||Method and Description|
Obtains the MIDI message contained in the event.
Obtains the time-stamp for the event, in MIDI ticks
Sets the time-stamp for the event, in MIDI ticks
public MidiEvent(MidiMessage message, long tick)
message- the MIDI message contained in the event
tick- the time-stamp for the event, in MIDI ticks
public MidiMessage getMessage()
public void setTick(long tick)
tick- the new time-stamp, in MIDI ticks
public long getTick()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2016, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.