mei2mid - Perl script to convert MEI to MIDI
mei2mid Example.mei > Example.mid mei2mid Example.mei | aplaymidi - mei2mid -v # prints version number
This script converts a musical score in MEI format into a MIDI file. It uses the XML::Parser module to read the xml input, and the MIDI-Perl module to put together the midi output.
It was written to assist in debugging "muscript -mei".
It should be considered still an early alpha release, but seems to work correctly on the sample MEI files at www.lib.virginia.edu/digital/resndev/mei/
The current version of mei2mid is available by http at
www.pjb.com.au/midi/free/mei2mid (save it to disc,
make it executable, and move it into your $PATH),
or as part of
www.pjb.com.au/midi/free/midiscripts.tar.gz
(unpack the tar archive somewhere in your $PATH).
If necessary, edit the first lines to reflect
where perl is installed on your system.
You'll also need to install the MIDI-Perl module and the XML::Parser module.
1.8, 20070627 oct, dur and pname are propagated
1.7, 20070627 1.7 dur.ges is in midi-ticks
1.6, 20070625 tempo element, for within-bar midi-tempo changes
1.5, 20070622 triplets :-) but no other tuplets :-(
1.0, 20070607 copied from musicxml2mid
Peter J Billam www.pjb.com.au/comp/contact.html
Based on Roland Perry's MEI and on Larry Wall's XML::Parser module and Sean Burke's MIDI::Perl module.
www.pjb.com.au/muscript
www.pjb.com.au/midi/bassline.html
www.pjb.com.au/midi/mididump.html
www.pjb.com.au/midi/midiecho.html
www.pjb.com.au/midi/midiedit.html
www.pjb.com.au/midi