| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static void | checkSysexStatus(final byte[]
the system exclusive message data data, final int the length of the valid message data in the array length)Checks the status byte for the system exclusive message. |
| public static void | checkSysexStatus(final int
the status byte for the message (0xF0 or 0xF7) status)Checks the status byte for the system exclusive message. |
| public static double | |
| public static int | getTempoMPQ(MidiMessage midiMsg)
parses this message for a META tempo message and returns the tempo in MPQ, or -1 if this isn't a tempo message |
| public static boolean | |
| public static boolean | |
| public static long | microsec2ticks(long us, double tempoMPQ, int resolution)
convert tempo to microsecond with given tempo Does not take tempo changes into account. |
| public static long | microsecond2tick(Sequence seq, long micros, MidiUtils.
Given a microsecond time, convert to tick. |
| public static int | Returns: index in track which is on or after "tick". if no entries are found that follow after tick, track.size() is returnedtick number of index to be found in array tick)Binary search for the event indexes of the track |
| public static long | tick2microsecond(Sequence seq, long tick, MidiUtils.
tempo info and current tempo cacheGiven a tick, convert to microsecond |
| public static long | ticks2microsec(long tick, double tempoMPQ, int resolution)
convert tick to microsecond with given tempo. |
| pack-priv static RuntimeException | Returns: an exception instancean info object that describes the desired device infoReturns an exception which should be thrown if MidiDevice is unsupported. |
| DEFAULT_TEMPO_MPQ | back to summary |
|---|---|
| public static final int DEFAULT_TEMPO_MPQ | |
| META_END_OF_TRACK_TYPE | back to summary |
|---|---|
| public static final int META_END_OF_TRACK_TYPE | |
| META_TEMPO_TYPE | back to summary |
|---|---|
| public static final int META_TEMPO_TYPE | |
| MidiUtils | back to summary |
|---|---|
| private MidiUtils() Suppresses default constructor, ensuring non-instantiability. | |
| checkSysexStatus | back to summary |
|---|---|
| public static void checkSysexStatus(final byte[] data, final int length) throws InvalidMidiDataException Checks the status byte for the system exclusive message.
| |
| checkSysexStatus | back to summary |
|---|---|
| public static void checkSysexStatus(final int status) throws InvalidMidiDataException Checks the status byte for the system exclusive message.
| |
| convertTempo | back to summary |
|---|---|
| public static double convertTempo(double tempo) converts | |
| getTempoMPQ | back to summary |
|---|---|
| public static int getTempoMPQ(MidiMessage midiMsg) parses this message for a META tempo message and returns the tempo in MPQ, or -1 if this isn't a tempo message | |
| isMetaEndOfTrack | back to summary |
|---|---|
| public static boolean isMetaEndOfTrack(MidiMessage midiMsg) return true if the passed message is Meta End Of Track | |
| isMetaTempo | back to summary |
|---|---|
| public static boolean isMetaTempo(MidiMessage midiMsg) return if the given message is a meta tempo message | |
| microsec2ticks | back to summary |
|---|---|
| public static long microsec2ticks(long us, double tempoMPQ, int resolution) convert tempo to microsecond with given tempo Does not take tempo changes into account. Does not work for SMPTE timing! | |
| microsecond2tick | back to summary |
|---|---|
| public static long microsecond2tick(Sequence seq, long micros, MidiUtils. Given a microsecond time, convert to tick. returns tempo at the given time in cache.getCurrTempoMPQ | |
| tick2index | back to summary |
|---|---|
| public static int tick2index(Track track, long tick) Binary search for the event indexes of the track
| |
| tick2microsecond | back to summary |
|---|---|
| public static long tick2microsecond(Sequence seq, long tick, MidiUtils. Given a tick, convert to microsecond
| |
| ticks2microsec | back to summary |
|---|---|
| public static long ticks2microsec(long tick, double tempoMPQ, int resolution) convert tick to microsecond with given tempo. Does not take tempo changes into account. Does not work for SMPTE timing! | |
| unsupportedDevice | back to summary |
|---|---|
| pack-priv static RuntimeException unsupportedDevice(final MidiDevice. Returns an exception which should be thrown if MidiDevice is unsupported.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| private boolean | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int[] | |
| pack-priv long[] |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| pack-priv float | |
| pack-priv synchronized float | |
| public synchronized void |
| currTempo | back to summary |
|---|---|
| pack-priv int currTempo | |
| firstTempoIsFake | back to summary |
|---|---|
| private boolean firstTempoIsFake | |
| snapshotIndex | back to summary |
|---|---|
| pack-priv int snapshotIndex | |
| snapshotMicro | back to summary |
|---|---|
| pack-priv int snapshotMicro | |
| tempos | back to summary |
|---|---|
| pack-priv int[] tempos | |
| ticks | back to summary |
|---|---|
| pack-priv long[] ticks | |
| TempoCache | back to summary |
|---|---|
| public TempoCache() | |
| TempoCache | back to summary |
|---|---|
| public TempoCache(Sequence seq) | |
| getCurrTempoMPQ | back to summary |
|---|---|
| public int getCurrTempoMPQ() | |
| getTempoMPQAt | back to summary |
|---|---|
| pack-priv float getTempoMPQAt(long tick) | |
| getTempoMPQAt | back to summary |
|---|---|
| pack-priv synchronized float getTempoMPQAt(long tick, float startTempoMPQ) | |
| refresh | back to summary |
|---|---|
| public synchronized void refresh(Sequence seq) | |