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

TNote Class Reference

TNote is the main common type of the music representation. More...

#include <TNote.h>

Inheritance diagram for TNote:

TMusicData Positionable visitable smartable List of all members.

Public Types

enum  style { normal, cue, grace }
enum  type { pitched, rest, unpitched }

Public Member Functions

virtual void accept (TScoreVisitor &visitor)
void setDuration (unsigned long dur)
unsigned long getDuration () const
unsigned long getFullDuration ()
void setInstrumentID (string id)
 the score-instrument (if any)

const string getInstrumentID () const
void setStyle (style t)
 to set the style of the note (normal, cue or grace - defaults to normal)

style getStyle () const
void setType (type t)
 to set the type of the note (regular, rest, unpitched - defaults to regular)

type getType () const
SPitchpitch ()
 the note pitch. May also be used for unpitched and rest placement.

SExpressionexpression ()
 the expression context of the note, expressed in terms of current division

SNotetiePrevious ()
 the optional previous tied note (corresponds to the tie element)

SNotetieNext ()
 the optional next tied note (corresponds to the tie element)

SGraphNotegraphics ()
 the graphical attributes of the note

SGraceNotegraceNote ()
 the grace note optionnal element

bool isTie ()
 the note is the first of a group of tied notes

bool isSingle ()
 the note is "single", not part of a tied group

bool isNormal ()
bool isGrace ()
bool isCue ()
bool isPitched ()
bool isRest ()
bool isUnpitched ()
long getVoice () const

Friends

EXP friend SMARTP< TNotenewNote ()

Detailed Description

It is derived from the MusicXML note element as described in note.dtd but only the sounding attributes has been retained at core level. All the other elements are stored in contextual information which is divided in 2 parts:

Todo:
lyrics support


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