provided.music
Class Tuplet

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

public class Tuplet
extends NoteCollection

Class that represents a tuplet, a series of notes played in a fraction of their normal total time. The exact fraction depends on the meter and the number of notes in the tuplet. A triplet is a specific type of tuplet.

Author:
swong

Field Summary
 
Fields inherited from class provided.music.NoteCollection
notes
 
Constructor Summary
Tuplet(Note... notes)
          Constructor for a tuplet
 
Method Summary
 java.lang.Object execute(IPhraseVisitor algo, java.lang.Object... params)
          Calls the "Tuplet" case of the visitor.
 java.lang.String toString()
          String representation of the tuplet:
 
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

Tuplet

public Tuplet(Note... notes)
Constructor for a tuplet

Parameters:
notes - vararg list of notes that form the tuplet, in order of play.
Method Detail

execute

public java.lang.Object execute(IPhraseVisitor algo,
                                java.lang.Object... params)
Calls the "Tuplet" case of the visitor.

Parameters:
algo - the visitor being used
params - vararg list of parameters for the visitor
Returns:
the result of the Tuplet case of the visitor.

toString

public java.lang.String toString()
String representation of the tuplet:

Overrides:
toString in class java.lang.Object
Returns:
"Tuplet(n1, n2, n3, etc)"