|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectie.ncl.sms.nbs.Melody
public class Melody
A melody that is a collection of musical phrases.
| Constructor Summary | |
|---|---|
Melody(java.lang.String name)
Create a new Melody specifying the name. |
|
| Method Summary | |
|---|---|
void |
add(Phrase phrase)
Add a musical phrase to the melody. |
void |
add(Phrase phrase,
int repeats)
Add a musical phrase to the melody, specifing number of times it is repeated. |
Phrase |
getPhrase(int i)
Get the Nth phrase in the melody. |
int |
getRepeat(int i)
Get the Nth phrase repeat count in the melody. |
static Melody |
sample()
|
int |
size()
Get the number of phrases in this melody. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Melody(java.lang.String name)
| Method Detail |
|---|
public void add(Phrase phrase)
Phrase
public void add(Phrase phrase,
int repeats)
Phrasepublic Phrase getPhrase(int i)
Phrasepublic int getRepeat(int i)
public int size()
public static Melody sample()
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||