Any way to use lilypond as a library? (embeded)
I would to ask if there are any way to use parts of lilypond as a library of a different application (use lilypond embeded). Right now I'm using Ubuntu, and there are only available lilypond, lilypond-data or lilypond-doc packages. There isn't anything similar to lilypond-dev As far as I see lilypond only includes executables. Why I ask that? I'm creating a little application and I would like to create simple midi files on the fly, but I would like to avoid to enter in midi internals (avoid to waste my time reinventing the wheel). And lilypond file format is really easy to use. So my idea is: * My program creates a tune. * Create a string with the lilypond description. * Calls a function, and it creates a external midi file * My program uses the midi file. Of course, other alternative could be: * My program creates a tune * Creates a external lilypond file * Calls lilypond to parse this string-creates midi file * Uses the file But, I think that the second one is more slow. Thanks for your attention. ___ lilypond-devel mailing list lilypond-devel@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-devel
Re: Any way to use lilypond as a library? (embeded)
2010/4/7 Alejandro Piñeiro infap...@gmail.com: I would to ask if there are any way to use parts of lilypond as a library of a different application (use lilypond embeded). No. Not the way you're imagining it, at least. Why I ask that? Because nobody coded it. Are _you_ volunteering to spend 50 hours working on this? I'm creating a little application and I would like to create simple midi files on the fly, but I would like to avoid to enter in midi internals (avoid to waste my time reinventing the wheel). lilypond is completely impractical for this; you'll save much more time by writing the midi files directly. I'm sure there's some libraries that help with this; there's certainly midi packages for python, perl, and such scripting languages. Cheers, - Graham ___ lilypond-devel mailing list lilypond-devel@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-devel
Re: Any way to use lilypond as a library? (embeded)
Hi Alejandro, For what you are doing, you probably want to use libmidi; lilypond is more like if your program created a tune and needed to render the score on paper or on the screen. If your program is in C , you can use libmidi directly. If it is in another language, there are many wrappers around libmidi available. On Wed, 7 Apr 2010 11:32:42 (UTC), Alejandro Piñeiro wrote: I would to ask if there are any way to use parts of lilypond as a library of a different application (use lilypond embeded). Right now I'm using Ubuntu, and there are only available lilypond, lilypond-data or lilypond-doc packages. There isn't anything similar to lilypond-dev As far as I see lilypond only includes executables. Why I ask that? I'm creating a little application and I would like to create simple midi files on the fly, but I would like to avoid to enter in midi internals (avoid to waste my time reinventing the wheel). And lilypond file format is really easy to use. So my idea is: * My program creates a tune. * Create a string with the lilypond description. * Calls a function, and it creates a external midi file * My program uses the midi file. Of course, other alternative could be: * My program creates a tune * Creates a external lilypond file * Calls lilypond to parse this string-creates midi file * Uses the file But, I think that the second one is more slow. Thanks for your attention. ___ lilypond-devel mailing list lilypond-devel@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-devel ___ lilypond-devel mailing list lilypond-devel@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-devel
Re: Any way to use lilypond as a library? (embeded)
Why I ask that? I'm creating a little application and I would like to create simple midi files on the fly, but I would like to avoid to enter in midi internals (avoid to waste my time reinventing the wheel). And lilypond file format is really easy to use. So my idea is: * My program creates a tune. * Create a string with the lilypond description. * Calls a function, and it creates a external midi file * My program uses the midi file. Check JFugue. That would be more appropriate for this purpose. Bert ___ lilypond-devel mailing list lilypond-devel@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-devel
Re: Any way to use lilypond as a library? (embeded)
On Apr 7, 2010, at 7:50 AM, Graham Percival wrote: 2010/4/7 Alejandro Piñeiro infap...@gmail.com: I would to ask if there are any way to use parts of lilypond as a library of a different application (use lilypond embeded). No. Not the way you're imagining it, at least. Why I ask that? Because nobody coded it. Are _you_ volunteering to spend 50 hours working on this? It seems that you parsed his question is Why, I ask? when in fact it was probably meant as Why do I ask that? (he then goes on to explain why he asked.) Speakers of my native language, a relative of Portuguese and Spanish, tend to form English questions the same way. --Florin ___ lilypond-devel mailing list lilypond-devel@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-devel