public final class Tempo
extends java.lang.Object
Some tempo related static methods.
| Modifier and Type | Field and Description |
|---|---|
private static int |
msPerMin
microseconds per minute
|
| Modifier | Constructor and Description |
|---|---|
private |
Tempo()
Allow only static methods.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
bpmToMpq(int bpm)
Converts BPM (beats per minute) into MPQ (microseconds per quarter note).
|
static int |
getBpm(javax.sound.midi.MetaMessage msg)
Parses a tempo change message and returns the value in BPM.
|
private static final int msPerMin
microseconds per minute
public static final int getBpm(javax.sound.midi.MetaMessage msg)
Parses a tempo change message and returns the value in BPM.
msg - tempo change messagepublic static final int bpmToMpq(int bpm)
Converts BPM (beats per minute) into MPQ (microseconds per quarter note).
bpm - the tempo in BPM