Am Sonntag 10 Juli 2011, 11:14:36 schrieb m...@apollinemike.com: > On Jul 10, 2011, at 10:56 AM, cab wrote: > > Converting from midi to ly is possible, but ly to musicxml has never > > been done... So my plan is to program it myself > > I think I would do it in python as musicxml2ly is also written in python. > > This is something I proposed to the French users list earlier this year and > it got a lukewarm response from the community (save several > well-thought-out responses from Scheme and/or musicxml and/or > accessibility enthusiasts). I have started some sketches for this type of > code, and it is certainly possible, especially if you do not include > position information. Contact me if you'd like to talk more about this > and I'll dig up the sketches I've already done in Scheme.
I have been thinking about ly -> MusicXML conversion, too. I don't think using an external python application is really possible, because LilyPond allows for so many different input variations. You'd basically have to diplicate most/all of the iterator and engraver logic in scheme.... I have rather been thinking about adding MusicXML export like the MIDI export: Create some translator (e.g. a base class Exporter or Xporter to indicate XML, like Performer or Engraver) and subclasses to listen to all the different music events/grobs. That would probably be the most native and probably also easiest implementation of MusicXML export. For example, MIDI creation is relatively simple code-wise (just look at the *performer.cc and the audio*.cc and midi*.cc files). Cheers, Reinhold -- ------------------------------------------------------------------ Reinhold Kainhofer, Vienna University of Technology, Austria email: reinh...@kainhofer.com, http://reinhold.kainhofer.com/ * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/ * Edition Kainhofer Music Publishing, http://www.edition-kainhofer.com/ * LilyPond music typesetting software, http://www.lilypond.org/ _______________________________________________ lilypond-devel mailing list lilypond-devel@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-devel