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 ScoreElementpublic void start(ScorePlayer scorePlayer, double time, double timeScale)
start in interface ScoreElementpublic double waitFor(ScorePlayer scorePlayer) throws java.lang.InterruptedException
waitFor in interface ScoreElementjava.lang.InterruptedExceptionpublic double getTimeScale()
getTimeScale in interface ScoreElementpublic void setTimeScale(double timeScale)
setTimeScale in interface ScoreElementpublic 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 ScoreElementpublic void stop(ScorePlayer scorePlayer, double time)
stop in interface ScoreElementpublic int compareTo(ScoreElement o)
compareTo in interface java.lang.Comparable<ScoreElement>