public class ScorePlayer
extends java.lang.Object
Constructor and Description |
---|
ScorePlayer(NotePlayer notePlayer) |
Modifier and Type | Method and Description |
---|---|
double |
getAdvance() |
double |
getChaseUntil() |
double |
getFundamental() |
double |
getLastFrequency() |
double |
getStopAfter() |
void |
noteOnFor(double frequency,
double time,
double duration) |
double |
playScoreText(java.lang.String text,
double time) |
void |
setAdvance(double advance)
Set time in seconds to wake up early to cover latency and jitter.
|
void |
setChaseUntil(double chaseUntil) |
void |
setFundamental(double frequency) |
void |
setLastFrequency(double lastFrequency) |
void |
setStopAfter(double stopAfter) |
void |
waitUntil(double time)
This will actually wake up early by getAdvance() seconds.
|
public ScorePlayer(NotePlayer notePlayer)
public void setFundamental(double frequency)
public double playScoreText(java.lang.String text, double time) throws java.lang.InterruptedException
java.lang.InterruptedException
public void noteOnFor(double frequency, double time, double duration)
public double getFundamental()
public double getLastFrequency()
public void setLastFrequency(double lastFrequency)
public void waitUntil(double time) throws java.lang.InterruptedException
java.lang.InterruptedException
public double getAdvance()
public void setAdvance(double advance)
public double getChaseUntil()
public void setChaseUntil(double chaseUntil)
public double getStopAfter()
public void setStopAfter(double stopAfter)