|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class doesn't actually send the music strings to JFugue, it writes them to a file for later playback. This can be useful while debugging an application (or when your son is asleep.
Field Summary | |
---|---|
int |
durationOfPlay
|
FileOutputStream |
file
|
Logger |
log
|
Constructor Summary | |
PretendPlayer()
Create a pretend player and opens an output file. |
Method Summary | |
---|---|
void |
close()
|
void |
play(Pattern pattern)
|
void |
play(String musicString)
Accept the music string as if to play it but actually just append it to a file. |
void |
setDurationOfPlay(int duration)
An injection target to set how long each play should take. |
Constructor Detail |
---|
public PretendPlayer()
Method Detail |
---|
public void close()
public void play(Pattern pattern)
public void play(String musicString)
public void setDurationOfPlay(int duration)