Planeshift
Public Member Functions

MusicXMLElement Class Reference

Extends the class MeasureElement by adding the ability to parse MusicXML. More...

#include <musicxmlscore.h>

List of all members.

Public Member Functions

bool LoadXMLNote (const csRef< iDocumentNode > &noteNode, int divisions)
 Load a note from the given <note> node.
csString ToXML ()
 Convert the note to XML.

Detailed Description

Extends the class MeasureElement by adding the ability to parse MusicXML.

Definition at line 48 of file musicxmlscore.h.


Member Function Documentation

bool MusicXMLElement::LoadXMLNote ( const csRef< iDocumentNode > &  noteNode,
int  divisions 
)

Load a note from the given <note> node.

If this element contain already one or more note, only notes that present the <chord/> tag are accepted.

Parameters:
noteNodea reference to the <note> node containing the definition of the note in MusicXML syntax.
divisionsdivisions per quarter used by the score to indicate duration.
Returns:
false if the given node syntax is wrong or if this note is not part of this chord, true otherwise.
csString MusicXMLElement::ToXML ( )

Convert the note to XML.

Returns:
the string containing the note definition in MusicXML syntax.

The documentation for this class was generated from the following file: