python - Generating pdf & midi from musicxml -


i've been trying load musicxml file, edit (removing several parts), , create pdf sheet document + midi/mp3, of using python.

i've first looked @ music21, load musicxml file right, far find, not output proper file (all details in output files have disappeared, that's left notes , title)

then found abjad looked promising. did output great quality ly/pdf files, there no musicxml imported.

then, discovered lilypond comes musicxml2ly script. able call , result lilypond file in python using sh (great lib !) abjad lilypond parser not parse (the doc says parses "large subset" lilypond, without more precisions).

finally, found music21 had exporter abjad python objects seems not present in codebase anymore , source code exporter exported notes.

i'm little out of options, achieve these goals ?

(additional point : still don't know how i'm going second part, going midi/mp3 using soundfonts, may not hardest part. suggestion ?)

if have musescore 2, can set in python

import music21 c = music21.converter.parse('path_to_musicxml.xml') c.show('musicxml.pdf') c.show('midi') 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -