I'm trying to create algorithmic music in netBeans using jFugue and have an integer array with the notes from one octave of the c major scale:
String scaleNotesC[] = {"[60]", "[62]", "[64]", "[65]", "[67]", "[69]", "[71]", "[72]"};
When I run the code below to try to get it to play C nothing happens.
Player playerOne = new Player();
playerOne.play("scaleNotesC[0]");
I have tried using an integer array but that didn't work either.
Is there any way to get jFugue to play a random note from a set in an array?
EDIT:
I changed the player code above to this to try and play multiple notes from the array but it won't work
playerOne.play(scaleNotesC[2] scaleNotesC[3] scaleNotesC[2]);