music
Class Chord

java.lang.Object
  extended by music.NoteCollection
      extended by music.Chord
All Implemented Interfaces:
INote, IPhrase

public class Chord
extends NoteCollection

A collection of notes that make up a Chord. All of the notes should be played simultaneously.


Field Summary
 
Fields inherited from class 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)
          Executes (accepts) the visitor, calling the case associated with this host's index value.
 
Methods inherited from class music.NoteCollection
getNotes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Chord

public Chord(Note... notes)
Create a Chord out of a collection of notes.

Method Detail

execute

public java.lang.Object execute(IPhraseVisitor algo,
                                java.lang.Object... params)
Description copied from interface: IPhrase
Executes (accepts) the visitor, calling the case associated with this host's index value.

Parameters:
algo - The visitor to execute
params - The input parameters supplied to the algo when its appropriate case is called.
Returns:
The return value from executing the appropriate case on the visitor.