mingus.extra.musicxml¶
Convert mingus.containers to MusicXML files.
The MusicXML format represents common Western musical notation from the 17th century onwards. It lets you distribute interactive sheet music online, and use sheet music files with a wide variety of musical applications.
The MusicXML format is open for use by anyone under a royalty-free license, and is supported by over 100 applications.
http://www.musicxml.org/xml.html
-
class
mingus.extra.musicxml.
Document
[source]¶ -
ATTRIBUTE_NODE
¶ Attribute of type: int
2
-
CDATA_SECTION_NODE
¶ Attribute of type: int
4
-
COMMENT_NODE
¶ Attribute of type: int
8
-
DOCUMENT_FRAGMENT_NODE
¶ Attribute of type: int
11
-
DOCUMENT_NODE
¶ Attribute of type: int
9
-
DOCUMENT_TYPE_NODE
¶ Attribute of type: int
10
-
ELEMENT_NODE
¶ Attribute of type: int
1
-
ENTITY_NODE
¶ Attribute of type: int
6
-
ENTITY_REFERENCE_NODE
¶ Attribute of type: int
5
-
NOTATION_NODE
¶ Attribute of type: int
12
-
PROCESSING_INSTRUCTION_NODE
¶ Attribute of type: int
7
-
TEXT_NODE
¶ Attribute of type: int
3
-
__nonzero__
(self)¶
-
_call_user_data_handler
(self, operation, src, dst)¶
-
_get_async
(self)¶
-
_get_childNodes
(self)¶
-
_get_firstChild
(self)¶
-
_get_lastChild
(self)¶
-
_get_localName
(self)¶
-
_set_async
(self, async)¶
-
abort
(self)¶
-
actualEncoding
¶ Attribute of type: NoneType
None
-
async
¶ Attribute of type: bool
False
-
attributes
¶ Attribute of type: NoneType
None
-
doctype
¶ Attribute of type: NoneType
None
-
documentElement
¶ Attribute of type: property
<property object at 0x7f906633f2b8>
-
documentURI
¶ Attribute of type: NoneType
None
-
encoding
¶ Attribute of type: NoneType
None
-
errorHandler
¶ Attribute of type: NoneType
None
-
firstChild
¶ Attribute of type: property
<property object at 0x7f906639c628>
-
getInterface
(self, feature)¶
-
getUserData
(self, key)¶
-
hasChildNodes
(self)¶
-
implementation
¶ Attribute of type: instance
<xml.dom.minidom.DOMImplementation instance at 0x7f9066338a28>
-
insertBefore
(self, newChild, refChild)¶
-
isSameNode
(self, other)¶
-
lastChild
¶ Attribute of type: property
<property object at 0x7f906639c730>
-
load
(self, uri)¶
-
loadXML
(self, source)¶
-
localName
¶ Attribute of type: property
<property object at 0x7f906639cd60>
-
namespaceURI
¶ Attribute of type: NoneType
None
-
nextSibling
¶ Attribute of type: NoneType
None
-
nodeName
¶ Attribute of type: str
'#document'
-
nodeType
¶ Attribute of type: int
9
-
nodeValue
¶ Attribute of type: NoneType
None
-
normalize
(self)¶
-
ownerDocument
¶ Attribute of type: NoneType
None
-
parentNode
¶ Attribute of type: NoneType
None
-
prefix
¶ Attribute of type: NoneType
None
-
previousSibling
¶ Attribute of type: NoneType
None
-
replaceChild
(self, newChild, oldChild)¶
-
saveXML
(self, snode)¶
-
setUserData
(self, key, data, handler)¶
-
standalone
¶ Attribute of type: NoneType
None
-
strictErrorChecking
¶ Attribute of type: bool
False
-
toprettyxml(self, indent= , newl=
-
, encoding=None)
-
mingus.extra.musicxml.
major_keys
¶ Attribute of type: list
['Cb', 'Gb', 'Db', 'Ab', 'Eb', 'Bb', 'F', 'C', 'G', 'D', 'A', 'E', 'B', 'F#', 'C#']
-
mingus.extra.musicxml.
minor_keys
¶ Attribute of type: list
['ab', 'eb', 'bb', 'f', 'c', 'g', 'd', 'a', 'e', 'b', 'f#', 'c#', 'g#', 'd#', 'a#']
-
mingus.extra.musicxml.
_gcd
(a=None, b=None, terms=None)[source]¶ Return greatest common divisor using Euclid’s Algorithm.
-
mingus.extra.musicxml.
write_Composition
(composition, filename, zip=False)[source]¶ Create an XML file (or MXL if compressed) for a given composition.