|
|||||
| FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||
One of the two primary threads of the system, this class builds and plays the actual music strings.
| Field Summary | |
|---|---|
SimpleDataGetter |
dataGetter
|
Logger |
log
|
Music |
music
|
Player |
player
|
def |
synth
|
| Constructor Summary | |
SoundBuilder()
|
|
| Method Summary | |
|---|---|
String |
buildMusicString(String allVoices)
|
String |
buildTempoString(Integer voiceNumber, Integer count)
Not sure yet how to write this. |
String |
buildVoiceString(String instrumentName, Integer voiceNumber, Integer count)
Build a string formatted as JFugue needs it. |
void |
run()
Build the music string to send to JFugue. |
void |
setDataGetter(SimpleDataGetter dg)
|
void |
setMusic(Music music)
likely set by spring |
void |
setPlayer(Player player)
set by spring |
| Constructor Detail |
|---|
public SoundBuilder()
| Method Detail |
|---|
String buildMusicString(String allVoices)
String buildTempoString(Integer voiceNumber, Integer count)
String buildVoiceString(String instrumentName, Integer voiceNumber, Integer count)
public void run()
public void setDataGetter(SimpleDataGetter dg)
public void setMusic(Music music)
public void setPlayer(Player player)