13 #ifndef __libmusicxml__
14 #define __libmusicxml__
17 # pragma warning (disable : 4786)
28 enum xmlErr { kNoErr, kInvalidFile, kUnsupported };
34 class musicxmlfactory;
38 typedef xmlelement* TElement;
39 typedef xmlattribute* TAttribute;
40 typedef musicxmlfactory* TFactory;
47 EXP
float musicxmllibVersion();
52 EXP
const char* musicxmllibVersionStr();
174 EXP xmlErr musicxmlfd2antescofo (FILE* fd,
bool generateBars, std::ostream& out);
183 EXP xmlErr musicxmlstring2antescofo(
const char *buff,
bool generateBars, std::ostream& out);
287 EXP
void factoryHeader (
TFactory f,
const char* worknumber,
const char* worktitle,
const char* movementnumber,
const char* movementtitle);
A generic xml attribute representation.
Definition: xml.h:47
EXP TElement factoryBarline(TFactory f, const char *location, const char *barstyle, const char *repeat)
Creates a barline element with the corresponding sub-elements.
EXP TAttribute factoryFloatAttribute(TFactory f, const char *name, float value)
Creates an arbitrary attribute with a float value.
EXP void factoryTie(TFactory f, TElement from, TElement to)
Tie two notes.
EXP void factoryAddElements(TFactory f, TElement elt, TElement *subelts)
Adds a set of elements to another element.
EXP void factoryChord(TFactory f, TElement *notes)
Makes a chord from the gievn notes.
EXP xmlErr musicxmlstring2guido(const char *buff, bool generateBars, std::ostream &out)
Converts a MusicXML representation to the Guido format.
EXP const char * musicxml2brailleVersionStr()
Gives the LilyPond converter version as a string.
EXP TFactory factoryOpen()
Creates a new MusicXML factory.
EXP TElement factoryRest(TFactory f, int duration, const char *type)
Creates a rest.
EXP TAttribute factoryStrAttribute(TFactory f, const char *name, const char *value)
Creates an arbitrary attribute with a string value.
EXP TElement factoryStrElement(TFactory f, int type, const char *value)
Creates an arbitrary MusicXML element with a string value.
EXP TElement factoryMeasure(TFactory f, int number)
Creates a 'measure' element.
EXP TElement factoryMeasureWithAttributes(TFactory f, int number, const char *time, const char *clef, int line, int key, int division)
Creates a 'measure' element with a set of attributes.
EXP TElement factoryDynamic(TFactory f, int type, const char *placement)
Creates a dynamics element containing a dynamic type.
EXP TElement factoryPart(TFactory f, const char *id)
Creates a 'part' element.
EXP TElement factoryNote(TFactory f, const char *step, float alter, int octave, int duration, const char *type)
Creates a note.
EXP xmlErr musicxmlstring2guidoOnPart(const char *buffer, bool generateBars, int partFilter, std::ostream &out)
Converts a MusicXML representation to the Guido format ONLY on asked Part number ID.
A generic xml element representation.
Definition: xml.h:86
EXP void factoryRights(TFactory f, const char *r, const char *type)
Creates rights information.
EXP void factoryHeader(TFactory f, const char *worknumber, const char *worktitle, const char *movementnumber, const char *movementtitle)
Creates header information.
EXP float musicxml2lilypondVersion()
Gives the LilyPond converter version number.
EXP void factoryAddAttribute(TFactory f, TElement elt, TAttribute attr)
Adds an attribute to an element.
EXP void factoryTuplet(TFactory f, int actual, int normal, TElement *notes)
Makes a tuplet with notes.
EXP const char * musicxml2guidoVersionStr()
Gives the guido converter version as a string.
EXP void factoryArticulation(TFactory f, TElement elt, TElement articulation)
Add an articulation to a note.
EXP TElement factoryElement(TFactory f, int type)
Creates an arbitrary MusicXML element.
EXP TElement factoryScorepart(TFactory f, const char *id, const char *name, const char *abbrev)
Creates a 'score-part' element.
EXP TElement factoryFloatElement(TFactory f, int type, float value)
Creates an arbitrary MusicXML element with a float value.
EXP void factoryClose(TFactory f)
Close a MusicXML factory.
EXP void factoryFreeAttribute(TFactory f, TAttribute attr)
Frees a previously allocated attribute.
EXP void factoryFreeElement(TFactory f, TElement elt)
Frees a previously allocated element.
EXP xmlErr musicxmlfile2guido(const char *file, bool generateBars, std::ostream &out)
Converts a MusicXML representation to the Guido format.
EXP void factoryAddPart(TFactory f, TElement part)
Adds a part.
EXP void factoryEncoding(TFactory f, const char *software)
Creates encoding information.
EXP float musicxml2guidoVersion()
Gives the guido converter version number.
Definition: musicxmlfactory.h:26
EXP xmlErr musicxmlfd2guido(FILE *fd, bool generateBars, std::ostream &out)
Converts a MusicXML representation to the Guido format.
EXP void factoryCreator(TFactory f, const char *c, const char *type)
Creates creator information.
EXP void factoryNotation(TFactory f, TElement elt, TElement notation)
Add an element to a note notations element.
EXP void factoryPrint(TFactory f, std::ostream &out)
Print the MusicXML representation to stream.
EXP void factoryAddElement(TFactory f, TElement elt, TElement subelt)
Adds an element to another element.
EXP TAttribute factoryIntAttribute(TFactory f, const char *name, int value)
Creates an arbitrary attribute with an integer value.
EXP void factoryAddGroup(TFactory f, int number, const char *name, const char *abbrev, bool groupbarline, TElement *parts)
Adds parts grouped in a 'part-group'.
EXP float musicxml2brailleVersion()
Gives the Braille converter version number.
EXP const char * musicxml2lilypondVersionStr()
Gives the LilyPond converter version as a string.
EXP TElement factoryIntElement(TFactory f, int type, int value)
Creates an arbitrary MusicXML element with an integer value.