public class Chord extends NoteCollection
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ID
The ID value of this class
|
notes| Constructor and Description |
|---|
Chord(Note... notes)
Create a Chord out of a collection of notes.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
execute(IPhraseVisitor algo,
java.lang.Object... params)
Calls the Chord.ID case of the given algo.
|
java.lang.String |
toString()
Returns a string representation of the chord: "(noteA, noteB, ...)"
|
getNotespublic static final java.lang.String ID
public Chord(Note... notes)
notes - vararg list of notes used in the chord.public java.lang.Object execute(IPhraseVisitor algo, java.lang.Object... params)
algo - The IPhraseVisitor algo to use.params - vararg list of input parameterspublic java.lang.String toString()
toString in class java.lang.Object