Main Page | Modules | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | Related Pages

TTuplet Class Reference

Graphical representation of a tuplet. More...

#include <TNotation.h>

Inheritance diagram for TTuplet:

TNotationElement Placementable Positionable visitable smartable List of all members.

Public Types

enum  {
  undefined = -1, actual = 1, both, none,
  last = none
}

Public Member Functions

virtual void accept (TScoreVisitor &visitor)
void setType (StartStop::type type)
 the required type attribute

void setNumber (int num)
 optional number for nested tuplets

void setBracket (YesNo::type bracket)
 optional bracket attribute

void setShowNum (int sn)
 optional display control

void setShowType (int st)
 optional display control

StartStop::type getType () const
int getNumber () const
YesNo::type getBracket () const
int getShowNum () const
int getShowType () const
STupletDescactualDesc ()
STupletDescnormalDesc ()

Static Public Member Functions

const string xmlshow (int d)
 convert a numeric show type to a MusicXML string

int xmlshow (const string str)
 convert an MusicXML string to a numeric show type


Protected Member Functions

 TTuplet (StartStop::type type)

Friends

EXP friend SMARTP< TTupletnewTuplet (StartStop::type type)

Detailed Description

A tuplet element is present when a tuplet is to be displayed graphically, in addition to the sound data provided by the time-modification elements. The number attribute is used to distinguish nested tuplets. The bracket attribute is used to indicate the presence of a bracket. If unspecified, the results are implementation- dependent.

The tuplet-actual and tuplet-normal elements provide optional full control over tuplet specifications. Each allows the number and note type (including dots) describing a single tuplet. If any of these elements are absent, their values are based on the time-modification element.

The show-number attribute is used to display either the number of actual notes, the number of both actual and normal notes, or neither. It is actual by default. The show-type attribute is used to display either the actual type, both the actual and normal types, or neither. It is none by default.


Generated on Tue Mar 23 09:50:26 2004 for LibMusicXML by doxygen 1.3.3