renderMusicxml¶
- maelzel.scoring.render.renderMusicxml(xmlfile, outfile, method='musescore', crop=None, pngpage=1)[source]¶
Convert a saved musicxml file to pdf or png
- Parameters:
xmlfile (
str
) – the musicxml file to convertoutfile (
str
) – the output file. The extension determines the output format. Possible formats pdf and pngmethod – if given, will determine the method used to render. Use None to indicate a default method. Possible values: ‘musescore’
crop (
Optional
[bool
]) – if True, crop the image to the contents. This defaults to True for png and to False for pdfpngpage – which page to render if rendering to png
- Return type:
None
Supported methods:
format
methods
pdf
musescore
png
musescore