|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object SongNode
public class SongNode
Constructor Summary | |
---|---|
SongNode()
When we make a new element, the next part is empty, and ours is a blank new part |
Method Summary | |
---|---|
void |
blockingPlayFromMeOn(int instrument)
Collect all the notes from this node on in an part (then a score) and plays blocking all other events so that only the score plays. |
void |
blockingPlayFromMeOn(String songName,
double tempo,
int timeSignatureTop,
int timeSignatureBottom,
int instrument)
Collect all the notes from this node on in an part (then a score) and then plays blocking all other events so that only the score plays. |
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 |
void |
insertAfter(SongNode nextOne)
Insert the input SongNode AFTER this node, and make whatever node comes NEXT become the next of the input node. |
jm.music.data.Score |
makeMyScore(int instrument)
Collect all the notes from this node on in an part (then a score) and returns the score |
jm.music.data.Score |
makeMyScore(String songName,
double tempo,
int timeSignatureTop,
int timeSignatureBottom,
int instrument)
Collect all the notes from this node on in an part (then a score) and then returns the score. |
SongNode |
next()
Provides public access to the next node. |
void |
playFromMeOn(int instrument)
Collect all the notes from this node on in an part (then a score) and play. |
void |
playFromMeOn(String songName,
double tempo,
int timeSignatureTop,
int timeSignatureBottom,
int instrument)
Collect all the notes from this node on in an part (then a score) and then play it. |
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 phrase 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 onepublic 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 next()
public void showFromMeOn(int instrument)
instrument
- MIDI instrument (program) to be used in playing this listpublic jm.music.data.Phrase collect()
public jm.music.data.Score makeMyScore(int instrument)
instrument
- MIDI instrument (program) to be used in playing this listpublic jm.music.data.Score makeMyScore(String songName, double tempo, int timeSignatureTop, int timeSignatureBottom, int instrument)
songName
- name of the Scoretempo
- tempo for the scoretimeSignatureTop
- the top part of the time signaturetimeSignatureBottom
- the bottom part of the time signatureinstrument
- MIDI instrument (program) to be used in playing this listpublic void playFromMeOn(int instrument)
instrument
- MIDI instrument (program) to be used in playing this listpublic void playFromMeOn(String songName, double tempo, int timeSignatureTop, int timeSignatureBottom, int instrument)
songName
- name of the Scoretempo
- tempo for the scoretimeSignatureTop
- the top part of the time signaturetimeSignatureBottom
- the bottom part of the time signatureinstrument
- MIDI instrument (program) to be used in playing this listpublic void blockingPlayFromMeOn(int instrument)
instrument
- MIDI instrument (program) to be used in playing this listpublic void blockingPlayFromMeOn(String songName, double tempo, int timeSignatureTop, int timeSignatureBottom, int instrument)
songName
- name of the Scoretempo
- tempo for the scoretimeSignatureTop
- the top part of the time signaturetimeSignatureBottom
- the bottom part of the time signatureinstrument
- MIDI instrument (program) to be used in playing this list
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |