public interface Player extends Component
Modifier and Type | Method and Description |
---|---|
void |
abortPlay()
Aborts play().
|
int |
getCurrentTick()
Returns the current tick of the player.
|
int |
getMilliBPM()
Gets the playback speed in milli-BPM.
|
void |
play(SongContext songContext)
Plays the arrangement from the song context.
|
void |
setMilliBPM(int milliBPM)
Sets the playback speed in milli-BPM.
|
boolean |
skipToTick(int tick)
Skips to the specified tick.
|
configure
getRandomSeed, setRandomSeed
void play(SongContext songContext)
songContext
- the song contextIllegalStateException
- if play() is called while play() is running in another threadint getMilliBPM()
void setMilliBPM(int milliBPM)
milliBPM
- the speed in milli-BPMboolean skipToTick(int tick)
tick
- the tick to skip toint getCurrentTick()
void abortPlay()