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

TNoteHead Class Reference

the shape of the note head More...

#include <TNote.h>

Inheritance diagram for TNoteHead:

visitable smartable List of all members.

Public Types

enum  notehead {
  undefined = -1, slash = 1, triangle, diamond,
  square, cross, x, circle_x,
  normal, none, last = none
}

Public Member Functions

virtual void accept (TScoreVisitor &visitor)
void setShape (notehead shape)
void setFilled (YesNo::type filled)
void setParentheses (YesNo::type par)
notehead getShape () const
YesNo::type getFilled () const
YesNo::type getParentheses () const

Static Public Member Functions

const string xmlnotehead (notehead d)
 convert a numeric beam type to a MusicXML string

notehead xmlnotehead (const string str)
 convert an MusicXML string to a numeric beam type


Friends

EXP friend SMARTP< TNoteHeadnewNoteHead ()

Detailed Description

The notehead element indicates shapes other than the open and closed ovals associated with note durations. The element value can be slash, triangle, diamond, square, cross, x, circle-x, normal, or none. For the enclosed shapes, the default is to be hollow for half notes and longer, and filled otherwise. The filled attribute can be set to change this if needed. If the parentheses attribute is set to yes, the notehead is parenthesized. It is no by default.
The MusicXML notehead element as defined in note.dtd.


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