Package heronarts.lx.midi
Class MidiBeat
java.lang.Object
javax.sound.midi.MidiMessage
javax.sound.midi.ShortMessage
heronarts.lx.midi.LXShortMessage
heronarts.lx.midi.MidiBeat
- All Implemented Interfaces:
Cloneable
-
Field Summary
Modifier and TypeFieldDescriptionfinal long
static final long
static final int
Fields inherited from class javax.sound.midi.ShortMessage
ACTIVE_SENSING, CHANNEL_PRESSURE, CONTINUE, CONTROL_CHANGE, END_OF_EXCLUSIVE, MIDI_TIME_CODE, NOTE_OFF, NOTE_ON, PITCH_BEND, POLY_PRESSURE, PROGRAM_CHANGE, SONG_POSITION_POINTER, SONG_SELECT, START, SYSTEM_RESET, TIMING_CLOCK, TUNE_REQUEST
Fields inherited from class javax.sound.midi.MidiMessage
data, length
-
Method Summary
Methods inherited from class heronarts.lx.midi.LXShortMessage
dispatch, fromShortMessage
Methods inherited from class javax.sound.midi.ShortMessage
clone, getChannel, getCommand, getData1, getData2, getDataLength, setMessage, setMessage, setMessage
Methods inherited from class javax.sound.midi.MidiMessage
getLength, getMessage, getStatus, setMessage
-
Field Details
-
PERIOD_UNKNOWN
public static final long PERIOD_UNKNOWN- See Also:
-
STOP
public static final int STOP- See Also:
-
nanoTime
public final long nanoTime
-
-
Method Details
-
getPeriod
public double getPeriod()Get the beat period in milliseconds- Returns:
- Milliseconds per beat
-
getBeat
public int getBeat() -
isStop
public boolean isStop()
-