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

__init__(self)[source]
__nonzero__(self)
_call_user_data_handler(self, operation, src, dst)
_create_entity(self, name, publicId, systemId, notationName)[source]
_create_notation(self, name, publicId, systemId)[source]
_get_actualEncoding(self)[source]
_get_async(self)
_get_childNodes(self)
_get_doctype(self)[source]
_get_documentElement(self)[source]
_get_documentURI(self)[source]
_get_elem_info(self, element)[source]
_get_encoding(self)[source]
_get_errorHandler(self)[source]
_get_firstChild(self)
_get_lastChild(self)
_get_localName(self)
_get_standalone(self)[source]
_get_strictErrorChecking(self)[source]
_get_version(self)[source]
_set_async(self, async)
abort(self)
actualEncoding

Attribute of type: NoneType None

appendChild(self, node)[source]
async

Attribute of type: bool False

attributes

Attribute of type: NoneType None

cloneNode(self, deep)[source]
createAttribute(self, qName)[source]
createAttributeNS(self, namespaceURI, qualifiedName)[source]
createCDATASection(self, data)[source]
createComment(self, data)[source]
createDocumentFragment(self)[source]
createElement(self, tagName)[source]
createElementNS(self, namespaceURI, qualifiedName)[source]
createProcessingInstruction(self, target, data)[source]
createTextNode(self, data)[source]
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>

getElementById(self, id)[source]
getElementsByTagName(self, name)[source]
getElementsByTagNameNS(self, namespaceURI, localName)[source]
getInterface(self, feature)
getUserData(self, key)
hasChildNodes(self)
implementation

Attribute of type: instance <xml.dom.minidom.DOMImplementation instance at 0x7f9066338a28>

importNode(self, node, deep)[source]
insertBefore(self, newChild, refChild)
isSameNode(self, other)
isSupported(self, feature, version)[source]
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

removeChild(self, oldChild)[source]
renameNode(self, n, namespaceURI, name)[source]
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.toxml(self, encoding=None)
mingus.extra.musicxml.version

Attribute of type: NoneType None

mingus.extra.musicxml.writexml(self, writer, indent=, addindent=, 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._bar2musicxml(bar)[source]

mingus.extra.musicxml._composition2musicxml(comp)[source]

mingus.extra.musicxml._gcd(a=None, b=None, terms=None)[source]

Return greatest common divisor using Euclid’s Algorithm.


mingus.extra.musicxml._lcm(a=None, b=None, terms=None)[source]

Return lowest common multiple.


mingus.extra.musicxml._note2musicxml(note)[source]

mingus.extra.musicxml._track2musicxml(track)[source]

mingus.extra.musicxml.from_Bar(bar)[source]

mingus.extra.musicxml.from_Composition(comp)[source]

mingus.extra.musicxml.from_Note(note)[source]

mingus.extra.musicxml.from_Track(track)[source]

mingus.extra.musicxml.write_Composition(composition, filename, zip=False)[source]

Create an XML file (or MXL if compressed) for a given composition.


Back to Index