.. _moduleMusicxmlM21ToXml: music21.musicxml.m21ToXml ========================= .. WARNING: DO NOT EDIT THIS FILE: AUTOMATICALLY GENERATED. PLEASE EDIT THE .py FILE DIRECTLY. .. automodule:: music21.musicxml.m21ToXml GeneralObjectExporter --------------------- .. autoclass:: music21.musicxml.m21ToXml.GeneralObjectExporter .. rubric:: :class:`~music21.musicxml.m21ToXml.GeneralObjectExporter` methods .. automethod:: music21.musicxml.m21ToXml.GeneralObjectExporter.fromDiatonicScale .. automethod:: music21.musicxml.m21ToXml.GeneralObjectExporter.fromDuration .. automethod:: music21.musicxml.m21ToXml.GeneralObjectExporter.fromDynamic .. automethod:: music21.musicxml.m21ToXml.GeneralObjectExporter.fromGeneralNote .. automethod:: music21.musicxml.m21ToXml.GeneralObjectExporter.fromGeneralObject .. automethod:: music21.musicxml.m21ToXml.GeneralObjectExporter.fromMeasure .. automethod:: music21.musicxml.m21ToXml.GeneralObjectExporter.fromMusic21Object .. automethod:: music21.musicxml.m21ToXml.GeneralObjectExporter.fromPart .. automethod:: music21.musicxml.m21ToXml.GeneralObjectExporter.fromPitch .. automethod:: music21.musicxml.m21ToXml.GeneralObjectExporter.fromScale .. automethod:: music21.musicxml.m21ToXml.GeneralObjectExporter.fromScore .. automethod:: music21.musicxml.m21ToXml.GeneralObjectExporter.fromStream .. automethod:: music21.musicxml.m21ToXml.GeneralObjectExporter.fromVoice .. automethod:: music21.musicxml.m21ToXml.GeneralObjectExporter.parse .. automethod:: music21.musicxml.m21ToXml.GeneralObjectExporter.parseWellformedObject MeasureExporter --------------- .. autoclass:: music21.musicxml.m21ToXml.MeasureExporter .. rubric:: :class:`~music21.musicxml.m21ToXml.MeasureExporter` bases - :class:`~music21.musicxml.m21ToXml.XMLExporterBase` .. rubric:: :class:`~music21.musicxml.m21ToXml.MeasureExporter` methods .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.appendArpeggioMarkSpannersToNotations .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.arpeggioMarkToMxExpression .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.articulationToXmlArticulation .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.articulationToXmlTechnical .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.barlineToXml .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.beamToXml .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.beamsToXml .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.chordSymbolToXml .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.chordToXml .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.chordWithFretBoardToXml .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.clefToXml .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.codaToXml .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.dealWithNotehead .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.durationXml .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.dynamicToXml .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.expressionToXml .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.fretBoardToXml .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.fretNoteToXml .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.getArpeggioNumber .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.intervalToXmlTranspose .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.keySignatureToXml .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.lyricToXml .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.mainElementsParse .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.measureStyle .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.moveBackward .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.moveForward .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.noChordToXml .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.noteToNotations .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.noteToXml .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.noteheadToXml .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.objectAttachedSpannersToNotations .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.objectAttachedSpannersToTechnicals .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.ornamentToMxAccidentalMarks .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.parse .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.parseFlatElements .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.parseOneElement .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.pitchToXml .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.placeInDirection .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.rehearsalMarkToXml .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.relatedSpanners .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.repeatToXml .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.restToXml .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.romanNumeralToXml .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.segnoToXml .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.setBarline .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.setHarmonic .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.setLeftBarline .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.setLineStyle .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.setMxAttributes .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.setMxAttributesObjectForStartOfMeasure .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.setMxPrint .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.setNoteInstrument .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.setOffsetOptional .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.setRbSpanners .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.setRightBarline .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.setTranspose .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.staffLayoutToXmlPrint .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.staffLayoutToXmlStaffDetails .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.tempoIndicationToXml .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.textExpressionToXml .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.tieToXmlTie .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.tieToXmlTied .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.timeSignatureToXml .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.tupletToTimeModification .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.tupletToXmlTuplet .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.unpitchedToXml .. automethod:: music21.musicxml.m21ToXml.MeasureExporter.wrapObjectInAttributes Methods inherited from :class:`~music21.musicxml.m21ToXml.XMLExporterBase`: .. hlist:: :columns: 3 - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.accidentalToMx` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.accidentalToMxAccidentalMark` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.addDividerComment` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.asBytes` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.dump` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.pageLayoutToXmlPageLayout` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.pageLayoutToXmlPrint` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.setColor` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.setEditorial` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.setFont` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.setPosition` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.setPrintObject` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.setPrintStyle` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.setPrintStyleAlign` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.setStyleAttributes` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.setTextFormatting` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.staffLayoutToXmlStaffLayout` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.systemLayoutToXmlPrint` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.systemLayoutToXmlSystemLayout` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.xmlHeader` PartExporter ------------ .. autoclass:: music21.musicxml.m21ToXml.PartExporter .. rubric:: :class:`~music21.musicxml.m21ToXml.PartExporter` bases - :class:`~music21.musicxml.m21ToXml.XMLExporterBase` .. rubric:: :class:`~music21.musicxml.m21ToXml.PartExporter` methods .. automethod:: music21.musicxml.m21ToXml.PartExporter.fixupNotationFlat .. automethod:: music21.musicxml.m21ToXml.PartExporter.fixupNotationMeasured .. automethod:: music21.musicxml.m21ToXml.PartExporter.getXmlScorePart .. automethod:: music21.musicxml.m21ToXml.PartExporter.instrumentSetup .. automethod:: music21.musicxml.m21ToXml.PartExporter.instrumentToXmlMidiInstrument .. automethod:: music21.musicxml.m21ToXml.PartExporter.instrumentToXmlScoreInstrument .. automethod:: music21.musicxml.m21ToXml.PartExporter.mergeInstrumentStreamPartStaffAware .. automethod:: music21.musicxml.m21ToXml.PartExporter.parse Methods inherited from :class:`~music21.musicxml.m21ToXml.XMLExporterBase`: .. hlist:: :columns: 3 - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.accidentalToMx` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.accidentalToMxAccidentalMark` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.addDividerComment` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.asBytes` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.dump` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.pageLayoutToXmlPageLayout` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.pageLayoutToXmlPrint` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.setColor` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.setEditorial` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.setFont` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.setPosition` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.setPrintObject` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.setPrintStyle` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.setPrintStyleAlign` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.setStyleAttributes` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.setTextFormatting` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.staffLayoutToXmlStaffLayout` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.systemLayoutToXmlPrint` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.systemLayoutToXmlSystemLayout` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.xmlHeader` .. rubric:: :class:`~music21.musicxml.m21ToXml.PartExporter` instance variables .. attribute:: PartExporter.previousPartStaffInGroup If the part being exported is a :class:`~music21.stream.base.PartStaff`, this attribute will be used to store the immediately previous `PartStaff` in the :class:`~music21.layout.StaffGroup`, if any. (E.g. if this is the left hand, store a reference to the right hand.) ScoreExporter ------------- .. autoclass:: music21.musicxml.m21ToXml.ScoreExporter .. rubric:: :class:`~music21.musicxml.m21ToXml.ScoreExporter` bases - :class:`~music21.musicxml.m21ToXml.XMLExporterBase` - :class:`~music21.musicxml.partStaffExporter.PartStaffExporterMixin` .. rubric:: :class:`~music21.musicxml.m21ToXml.ScoreExporter` methods .. automethod:: music21.musicxml.m21ToXml.ScoreExporter.addStyleToXmlDefaults .. automethod:: music21.musicxml.m21ToXml.ScoreExporter.contributorToXmlCreator .. automethod:: music21.musicxml.m21ToXml.ScoreExporter.emptyObject .. automethod:: music21.musicxml.m21ToXml.ScoreExporter.getSupports .. automethod:: music21.musicxml.m21ToXml.ScoreExporter.metadataToMiscellaneous .. automethod:: music21.musicxml.m21ToXml.ScoreExporter.parse .. automethod:: music21.musicxml.m21ToXml.ScoreExporter.parseFlatScore .. automethod:: music21.musicxml.m21ToXml.ScoreExporter.parsePartlikeScore .. automethod:: music21.musicxml.m21ToXml.ScoreExporter.postPartProcess .. automethod:: music21.musicxml.m21ToXml.ScoreExporter.renumberVoicesWithinStaffGroups .. automethod:: music21.musicxml.m21ToXml.ScoreExporter.scorePreliminaries .. automethod:: music21.musicxml.m21ToXml.ScoreExporter.setDefaults .. automethod:: music21.musicxml.m21ToXml.ScoreExporter.setEncoding .. automethod:: music21.musicxml.m21ToXml.ScoreExporter.setIdentification .. automethod:: music21.musicxml.m21ToXml.ScoreExporter.setMeterStream .. automethod:: music21.musicxml.m21ToXml.ScoreExporter.setPartExporterStaffGroups .. automethod:: music21.musicxml.m21ToXml.ScoreExporter.setPartList .. automethod:: music21.musicxml.m21ToXml.ScoreExporter.setPartsAndRefStream .. automethod:: music21.musicxml.m21ToXml.ScoreExporter.setScoreHeader .. automethod:: music21.musicxml.m21ToXml.ScoreExporter.setScoreLayouts .. automethod:: music21.musicxml.m21ToXml.ScoreExporter.setTitles .. automethod:: music21.musicxml.m21ToXml.ScoreExporter.staffGroupToXmlPartGroup .. automethod:: music21.musicxml.m21ToXml.ScoreExporter.styleToXmlAppearance .. automethod:: music21.musicxml.m21ToXml.ScoreExporter.textBoxToXmlCredit Methods inherited from :class:`~music21.musicxml.m21ToXml.XMLExporterBase`: .. hlist:: :columns: 3 - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.accidentalToMx` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.accidentalToMxAccidentalMark` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.addDividerComment` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.asBytes` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.dump` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.pageLayoutToXmlPageLayout` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.pageLayoutToXmlPrint` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.setColor` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.setEditorial` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.setFont` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.setPosition` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.setPrintObject` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.setPrintStyle` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.setPrintStyleAlign` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.setStyleAttributes` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.setTextFormatting` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.staffLayoutToXmlStaffLayout` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.systemLayoutToXmlPrint` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.systemLayoutToXmlSystemLayout` - :meth:`~music21.musicxml.m21ToXml.XMLExporterBase.xmlHeader` Methods inherited from :class:`~music21.musicxml.partStaffExporter.PartStaffExporterMixin`: .. hlist:: :columns: 3 - :meth:`~music21.musicxml.partStaffExporter.PartStaffExporterMixin.addStaffTagsMultiStaffParts` - :meth:`~music21.musicxml.partStaffExporter.PartStaffExporterMixin.cleanUpSubsequentPartStaffs` - :meth:`~music21.musicxml.partStaffExporter.PartStaffExporterMixin.getRootForPartStaff` - :meth:`~music21.musicxml.partStaffExporter.PartStaffExporterMixin.joinPartStaffs` - :meth:`~music21.musicxml.partStaffExporter.PartStaffExporterMixin.joinableGroups` - :meth:`~music21.musicxml.partStaffExporter.PartStaffExporterMixin.moveMeasureContents` - :meth:`~music21.musicxml.partStaffExporter.PartStaffExporterMixin.movePartStaffMeasureContents` - :meth:`~music21.musicxml.partStaffExporter.PartStaffExporterMixin.processSubsequentPartStaff` - :meth:`~music21.musicxml.partStaffExporter.PartStaffExporterMixin.setEarliestAttributesAndClefsPartStaff` XMLExporterBase --------------- .. autoclass:: music21.musicxml.m21ToXml.XMLExporterBase .. rubric:: :class:`~music21.musicxml.m21ToXml.XMLExporterBase` methods .. automethod:: music21.musicxml.m21ToXml.XMLExporterBase.accidentalToMx .. automethod:: music21.musicxml.m21ToXml.XMLExporterBase.accidentalToMxAccidentalMark .. automethod:: music21.musicxml.m21ToXml.XMLExporterBase.addDividerComment .. automethod:: music21.musicxml.m21ToXml.XMLExporterBase.asBytes .. automethod:: music21.musicxml.m21ToXml.XMLExporterBase.dump .. automethod:: music21.musicxml.m21ToXml.XMLExporterBase.pageLayoutToXmlPageLayout .. automethod:: music21.musicxml.m21ToXml.XMLExporterBase.pageLayoutToXmlPrint .. automethod:: music21.musicxml.m21ToXml.XMLExporterBase.setColor .. automethod:: music21.musicxml.m21ToXml.XMLExporterBase.setEditorial .. automethod:: music21.musicxml.m21ToXml.XMLExporterBase.setFont .. automethod:: music21.musicxml.m21ToXml.XMLExporterBase.setPosition .. automethod:: music21.musicxml.m21ToXml.XMLExporterBase.setPrintObject .. automethod:: music21.musicxml.m21ToXml.XMLExporterBase.setPrintStyle .. automethod:: music21.musicxml.m21ToXml.XMLExporterBase.setPrintStyleAlign .. automethod:: music21.musicxml.m21ToXml.XMLExporterBase.setStyleAttributes .. automethod:: music21.musicxml.m21ToXml.XMLExporterBase.setTextFormatting .. automethod:: music21.musicxml.m21ToXml.XMLExporterBase.staffLayoutToXmlStaffLayout .. automethod:: music21.musicxml.m21ToXml.XMLExporterBase.systemLayoutToXmlPrint .. automethod:: music21.musicxml.m21ToXml.XMLExporterBase.systemLayoutToXmlSystemLayout .. automethod:: music21.musicxml.m21ToXml.XMLExporterBase.xmlHeader Functions --------- .. autofunction:: music21.musicxml.m21ToXml.getMetadataFromContext .. autofunction:: music21.musicxml.m21ToXml.normalizeColor .. autofunction:: music21.musicxml.m21ToXml.typeToMusicXMLType