|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object SongElement
public class SongElement
Class that holds an element in a song
Constructor Summary | |
---|---|
SongElement()
Constructor that takes no arguments. |
Method Summary | |
---|---|
double |
getEndTime()
Method to get the end time for this element. |
SongElement |
getNext()
Method to get the next element in the song |
void |
setNext(SongElement nextOne)
Method to set the next element in the song |
void |
setPhrase(jm.music.data.Phrase myPhrase,
double startTime,
int instrument)
This method takes a phrase and makes it the one for this element at the desired start time with the given instrument |
void |
showFromMeOn()
Method to show the song from this element |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SongElement()
Method Detail |
---|
public void setPhrase(jm.music.data.Phrase myPhrase, double startTime, int instrument)
myPhrase
- the phrase to usestartTime
- the time to start this phraseinstrument
- the instrument to use to play thispublic void setNext(SongElement nextOne)
nextOne
- the element that should be nextpublic SongElement getNext()
public double getEndTime()
public void showFromMeOn()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |