|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectSongNode
public class SongNode
Represents a node in a flexible song structure
| Constructor Summary | |
|---|---|
SongNode()
Construct a new song node. |
|
| Method Summary | |
|---|---|
jm.music.data.Phrase |
collect()
Collect all nodes in this SongPart and return the composite Phrase |
SongNode |
copyNode()
copyNode returns a copy of this node |
SongNode |
getNext()
Get the next song node |
void |
insertAfter(SongNode nextOne)
Insert the input SongNode AFTER this node, and make whatever node comes NEXT become the next of the input node. |
void |
repeatNext(SongNode nextOne,
int count)
Repeat the input phrase for the number of times specified. |
void |
repeatNextInserting(SongNode nextOne,
int count)
Repeat the input phrase for the number of times specified. |
void |
setNext(SongNode nextOne)
Creates a link between the current node and the input node |
void |
setPhrase(jm.music.data.Phrase thisPhrase)
setPhrase takes a Phrase and makes it the one for this node |
void |
showFromMeOn(int instrument)
Collect all the notes from this node on in an part (then a score) and open it up for viewing. |
void |
weave(SongNode nextOne,
int count,
int skipAmount)
Weave the input song node count times every skipAmount nodes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SongNode()
| Method Detail |
|---|
public void setPhrase(jm.music.data.Phrase thisPhrase)
thisPhrase - the phrase for this nodepublic void setNext(SongNode nextOne)
nextOne - the node to link topublic SongNode copyNode()
public void repeatNextInserting(SongNode nextOne,
int count)
nextOne - node to be copied into the listcount - number of times to copy it in.
public void repeatNext(SongNode nextOne,
int count)
nextOne - node to be copied in to listcount - number of times to copy it in.public void insertAfter(SongNode nextOne)
nextOne - SongNode to insert after this one
public void weave(SongNode nextOne,
int count,
int skipAmount)
nextOne - node to be copied into the listcount - how many times to copyskipAmount - how many nodes to skip per weavepublic SongNode getNext()
public void showFromMeOn(int instrument)
instrument - the MIDI instrument (program) to
be used in playingpublic jm.music.data.Phrase collect()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||