public class MeasuresBeatsTicksTimecode extends AudioTimecode
Modifier and Type | Field and Description |
---|---|
int |
beatsPerMeasure
Most western music is in four-time
|
float |
bpm
Number of beats per minute
|
int |
ticksPerBeat
Standard MIDI is generally 120 ticks per beat
|
milliseconds
Constructor and Description |
---|
MeasuresBeatsTicksTimecode(float bpm)
Sets up a 4-time, 120 tick MBT timecode.
|
MeasuresBeatsTicksTimecode(float bpm,
long measures,
int beats,
int ticks)
Create a specific timecode.
|
MeasuresBeatsTicksTimecode(float bpm,
long measures,
int beats,
int ticks,
int beatsPerMeasure)
Create a specific timecode in a different time signature.
|
Modifier and Type | Method and Description |
---|---|
int |
getBeats()
Returns the number of beats.
|
long |
getMeasures()
Returns the number of measures.
|
int |
getTicks()
Returns the number of ticks in the current beat.
|
String |
toString() |
clone, getTimecodeInMilliseconds, setTimecodeInMilliseconds
public int beatsPerMeasure
public int ticksPerBeat
public float bpm
public MeasuresBeatsTicksTimecode(float bpm)
bpm
- public MeasuresBeatsTicksTimecode(float bpm, long measures, int beats, int ticks)
bpm
- The number of beats per minutemeasures
- The number of measuresbeats
- The number of beatsticks
- The number of tickspublic MeasuresBeatsTicksTimecode(float bpm, long measures, int beats, int ticks, int beatsPerMeasure)
bpm
- The number of beats per minutemeasures
- The number of measuresbeats
- The number of beatsticks
- The number of ticksbeatsPerMeasure
- The number of beats in a measurepublic long getMeasures()
public int getBeats()
public int getTicks()
public String toString()
toString
in class AudioTimecode
AudioTimecode.toString()