|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmusiccreator.BeatArray
public class BeatArray
A BeatArray represents the entire rhythm of a song (minus the first and last measures, which will always be whole notes), and is used as raw material by the SongFactory builder class.
Constructor Summary | |
---|---|
BeatArray(int numMeasures,
TimeSignature ts)
Creates a new instance of BeatArray |
Method Summary | |
---|---|
void |
Generate()
Randomly generates a beat array; overwrites existing beat array |
Beat |
get(int index)
|
void |
outputToConsole()
Writes the contents of the beat array to the console for debugging purposes. |
int |
Size()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BeatArray(int numMeasures, TimeSignature ts)
numMeasures
- number of desired measurests
- Time signature of desired measuresMethod Detail |
---|
public void Generate()
public void outputToConsole()
public int Size()
public Beat get(int index)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |