java.lang.Object
provided.abcMusic.musicFW.NoteCollection
provided.abcMusic.musicFW.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.
----------------------------------------------
A collection of Notes all played at once
-
Field Summary
FieldsFields inherited from class provided.abcMusic.musicFW.NoteCollection
notes
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class provided.abcMusic.musicFW.NoteCollection
getNotes
-
Field Details
-
ID
The ID value of this class- See Also:
- Constant Field Values
-
-
Constructor Details
-
Chord
Create a Chord out of a collection of notes.- Parameters:
notes
- vararg list of notes used in the chord.
-
-
Method Details
-
execute
Calls the Chord.ID case of the given algo.- Parameters:
algo
- The IPhraseVisitor algo to use.params
- vararg list of input parameters- Returns:
- the result of running the Chord case of the visitor.
-
toString
Returns a string representation of the chord: "(noteA, noteB, ...)"
-