abc.notation
Class Tuplet

java.lang.Object
  extended byabc.notation.Tuplet

public class Tuplet
extends java.lang.Object

A class for defining tuplets in a score.


Constructor Summary
Tuplet(java.util.Vector notes, int totalRelativeLength)
          Creates a new tuplet composed of the specified notes.
 
Method Summary
 java.util.Vector getNotesAsVector()
          Returns a new vector containing all notes of this multi note.
 int getTotalRelativeLength()
          Returns the total relative length of this tuplet.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tuplet

public Tuplet(java.util.Vector notes,
              int totalRelativeLength)
Creates a new tuplet composed of the specified notes. The total length of this tuplet will be equals to the totalRelativeLength * defaultLength.

Parameters:
notes - The NoteAbstract obejcts composing this tuplet, encapsulated inside a Vector.
totalRelativeLength - The total relative length of this tuplet multiplied by the delfault relative length gives the total absolute length of this tuplet.
Method Detail

getTotalRelativeLength

public int getTotalRelativeLength()
Returns the total relative length of this tuplet.

Returns:
The total relative length of this tuplet. The total relative length of this tuplet multiplied by the delfault relative length gives the total absolute length of this tuplet.

getNotesAsVector

public java.util.Vector getNotesAsVector()
Returns a new vector containing all notes of this multi note.

Returns:
A new vector containing all notes of this multi note.