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

TWedge Class Reference

the MusicXML wedge element. More...

#include <TDirection.h>

Inheritance diagram for TWedge:

TDirectionTypeElement Positionable visitable smartable List of all members.

Public Types

enum  {
  undefined = -1, crescendo = 1, diminuendo, stop,
  last = stop
}

Public Member Functions

virtual void accept (TScoreVisitor &visitor)
void setType (int type)
void setNumber (int num)
void setSpread (int sp)
int getType () const
int getNumber () const
int getSpread () const

Static Public Member Functions

const string xmltype (int d)
 convert an numeric wedge type to a MusicXML string

int xmltype (const string str)
 convert an MusicXML string to a numeric wedge type


Protected Member Functions

 TWedge (int type)

Friends

EXP friend SMARTP< TWedgenewWedge (int type)

Detailed Description

Wedge spread is measured in tenths of staff line space. The type is crescendo for the start of a wedge that is closed at the left side, and diminuendo for the start of a wedge that is closed on the right side. Spread values at the start of a crescendo wedge or end of a diminuendo wedge are ignored.
The MusicXML wedge element is defined in direction.dtd.


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