musicscore.xmlwrapper
- class musicscore.xmlwrapper.XMLWrapper[source]
Bases:
objectXMLWrapper contains an xml object at its core. It is the place where all the intuitive stuff is translated to attributes and children of xml objects.
All attributes and properties which are not listed in _ATTRIBUTES will be set to or get from core xml object.
- to_string(*args, **kwargs) str[source]
XMLWrappermethodCalls
to_stringmethod of self.xml_object- Returns:
musicxml snippet
- XMLClass = None
- property xml_object: XMLElement
XMLWrappermethodThis musicscore class has an equivalent
MusicXMLclass which can be reached via this property.If an attribute is not found directly in the main class, it wll be passed on to
__get_attribute__or__set__attribute__methods ofself.xml_object. It can also use the short cut attributes ofXMLElementto get or set the first child.- Returns:
wrapped MusicXML element of type
XMLClass