drumscript.notation_generator.xml_exporter.export_xml

export_xml(score, output_path=None)[source]

Exports a generated DrumScript score object to a MusicXML file.

Parameters:
  • score (object) – The music21.stream.Score object generated by build_score().

  • output_path (str, optional) – The exact file path to save the XML. Defaults to ‘drumscript.xml’ in CWD.

Returns:

The path to the generated XML file.

Return type:

str