|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jfugue.Pattern
This class represents a segment of music. By representing segments of music as patterns, JFugue gives users the opportunity to play around with pieces of music in new and interesting ways. Patterns may be added together, transformed, or otherwise manipulated to expand the possibilities of creative music.
Constructor Summary | |
Pattern()
Instantiates a new pattern |
|
Pattern(java.lang.String s)
Instantiates a new pattern using the given music string |
Method Summary | |
void |
add(Pattern pattern)
Adds an additional pattern to the end of this pattern. |
void |
add(java.lang.String musicString)
Adds a music string to the end of this pattern. |
void |
addElement(JFugueElement element)
Adds an individual element to the pattern. |
java.lang.String |
getMusicString()
Returns the music string kept in this pattern |
void |
setMusicString(java.lang.String s)
Sets the music string kept by this pattern. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Pattern()
public Pattern(java.lang.String s)
s
- the music stringMethod Detail |
public void setMusicString(java.lang.String s)
s
- the music stringpublic java.lang.String getMusicString()
public void add(Pattern pattern)
pattern
- the pattern to addpublic void add(java.lang.String musicString)
musicString
- the music string to addpublic void addElement(JFugueElement element)
element
- the element to add
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |