public class ScoreNote extends java.lang.Object implements ScoreElement
Constructor and Description |
---|
ScoreNote() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ScoreElement o) |
double |
getDuration() |
double |
getRatio() |
double |
getTime() |
double |
getTimeScale() |
boolean |
isRelative() |
double |
play(ScorePlayer scorePlayer,
double time,
double timeScale) |
void |
setDuration(double duration) |
void |
setRatio(double ratio) |
void |
setRelative(boolean flag) |
void |
setTimeScale(double timeScale) |
void |
start(ScorePlayer scorePlayer,
double time,
double timeScale) |
void |
stop(ScorePlayer scorePlayer,
double time) |
double |
waitFor(ScorePlayer scorePlayer) |
public double play(ScorePlayer scorePlayer, double time, double timeScale)
play
in interface ScoreElement
public void start(ScorePlayer scorePlayer, double time, double timeScale)
start
in interface ScoreElement
public double waitFor(ScorePlayer scorePlayer) throws java.lang.InterruptedException
waitFor
in interface ScoreElement
java.lang.InterruptedException
public double getTimeScale()
getTimeScale
in interface ScoreElement
public void setTimeScale(double timeScale)
setTimeScale
in interface ScoreElement
public void setRatio(double ratio)
public double getDuration()
public void setDuration(double duration)
public double getRatio()
public void setRelative(boolean flag)
public boolean isRelative()
public double getTime()
getTime
in interface ScoreElement
public void stop(ScorePlayer scorePlayer, double time)
stop
in interface ScoreElement
public int compareTo(ScoreElement o)
compareTo
in interface java.lang.Comparable<ScoreElement>