<div dir="ltr">Hi Sigfrid,<div><br></div><div>Here is the result you desire, a high-quality SVG image (displayed inline depending on your mail reader/browser, otherwise see the .svg attachment):</div><div><br></div><div><img src="cid:ii_14204f1202599cfd" alt="Inline images 1" width="875" height="370"><br>
</div><div><br></div><div>Generation of such an image could be automated, but probably too complex to deal with for a small project. It would also involve CGI interfacing to the DOS version of SCORE via dosemu:</div><div>
<a href="http://wiki.ccarh.org/wiki/Dosemu" target="_blank">http://wiki.ccarh.org/wiki/Dosemu</a></div><div>Also, you would need to use Wine <a href="http://en.wikipedia.org/wiki/Wine_(software)" target="_blank">http://en.wikipedia.org/wiki/Wine_(software)</a> to run a Windows command-line program to automatically adjust beam angles/heights using a program called BEAM written by Tom Brodhead:</div>
<div> <a href="http://home.comcast.net/~tom.brodhead" target="_blank">http://home.comcast.net/~tom.brodhead</a></div><div>And a ruby script to convert SCORE EPS files into SVG:</div><div> <a href="https://github.com/th-we/seps2svg" target="_blank">https://github.com/th-we/seps2svg</a></div>
<div><br></div><div>For full automation, three manual operations were needed to generate the above example:</div><div>(1) layout -- I copied the layout that you gave. Automated layout in SCORE is possible, but that would add moderatly to the complexity.</div>
<div>(2) vertical placement of measure tags. I put the tags at vertical step 15 in SCORE, and adjust them higher by hand when they collided with the music. This would be relatively simple to automate.</div><div>(3) note offsets such as in measure 7 LH would need to be automated. Also relatively simple.</div>
<div><br></div><div>The most difficult measure to automatically typeset would be measure 9 (first full measure of the second system). Presumably you chose to do the cross staff beaming of notes rather than MUP? And would this instruction be encoded in the MEI data? MUP had two difficulties in this measure: (1) attaching notes correctly to the beam, and (2) raising the rests to accommodate the notes. This will cause problems for most all automatic typesetting programs.</div>
<div><br></div><div>Lilypond will give slightly higher-quality results than MUP but not by a large amount. The main advantage of lilypond is that it can handle a wide range of musical symbols as well as be able to handle slightly more complex music than MUP can. Lilypond is reasonably fast but probably slower than MUP. Lilypond can output SVG images. MUP can also be used to generate SVG images by sending the PostScript output through GhostScript or inkscape. Both lilypond and MUP SVG output will be very messy looking in terms of the code because both of them do not calculate the SVG data directly, but send through an external library/program.</div>
<div><br></div><div>Abcm2ps (ABC+) will give a slightly lower quality result. The cross-staff notation of measure 9 cannot be handled by ABC+ or abcm2ps (as far as I am aware). The main advantage of abcm2ps printing (via a GCI interface) is that it is very fast (implemented in C). I don't know the quality/behavior of the JavaScript interface to abc. Using abcm2ps (<a href="http://moinejf.free.fr" target="_blank">http://moinejf.free.fr</a>) would be similar to MUP, and SVG output could be done through GhostScript or inkscape.</div>
<div><br></div><div>Vexflow I cannot imagine can handle music of this complexity. Someone who uses vexflow can post this example generated by vexflow to prove me wrong :-).</div><div><br></div><div><br></div><div>-=+Craig</div>
<div><br></div><div><br>On 29 October 2013 05:26, Sigfrid Lundberg <<a href="mailto:slu@kb.dk" target="_blank">slu@kb.dk</a>> wrote:<br>><br>> I've been working on a project which involves automatic generation of scores from an eXist native XML database containing musical segments. I've coded a MEI generator in the XQuery language, and the result is then translated into mup and from there to either PDF or MIDI. I'm working in MEI 2010-05 but are looking for a way forward to more modern MEI and higher quality PDF or even better SVG.<br>
><br>> Please find generated xml, pdf and midi attached (if it survives the listserv, they are miniscule and shouldn't hur bandwidth)<br>><br>> Suggestions. Should I go for MEI 2013, and I suppose Lilypond? Any other ideas? The system has to run batch server side on a Linux server.<br>
><br>> Any opinions?<br><br><br></div></div>