|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectprovided.music.NoteCollection
provided.music.Chord
public class Chord
A collection of notes that make up a Chord. All of the notes should be played simultaneously. The last note defines the length of all the notes.
Field Summary |
---|
Fields inherited from class provided.music.NoteCollection |
---|
notes |
Constructor Summary | |
---|---|
Chord(Note... notes)
Create a Chord out of a collection of notes. |
Method Summary | |
---|---|
java.lang.Object |
execute(IPhraseVisitor algo,
java.lang.Object... params)
Calls the "Chord" case of the given algo. |
java.lang.String |
toString()
Returns a string representation of the chord: "(noteA, noteB, ...)" |
Methods inherited from class provided.music.NoteCollection |
---|
getNotes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Chord(Note... notes)
notes
- vararg list of notes used in the chord.Method Detail |
---|
public java.lang.Object execute(IPhraseVisitor algo, java.lang.Object... params)
algo
- The IPhraseVisitor algo to use.params
- vararg list of input parameters
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |