provided.music
Class Tuplet
java.lang.Object
  
provided.music.NoteCollection
      
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
 
 
 
| 
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 java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
Tuplet
public Tuplet(Note... notes)
- Constructor for a tuplet
- Parameters:
 notes - vararg list of notes that form the tuplet, in order of play.
 
execute
public java.lang.Object execute(IPhraseVisitor algo,
                                java.lang.Object... params)
- Calls the "Tuplet" case of the visitor.
- Parameters:
 algo - the visitor being usedparams - 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)"