-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am Dienstag, 19. Februar 2008 schrieb Wilbert Berendsen: > I'm looking for a stable way to get the list of supported MIDI instrument > names from LilyPond, by running lilypond -e with a scheme expression to do > just that (and not print a regular ps/pdf file).
Unfortunately, in midi.scm the instrument-names-alist is not define-public'ed, so by default you don't have access to that list... If you change the define to define-public, you can simply do (the mapping of the lambda function is simply to get line breaks and quotes around the strings, otherwise you'll get a space-delimited list without quotes, where unfortunately the elements also contain spaces...): lilypond -e '(map (lambda (x) (display (format "~s~%" (car x)))) instrument-names-alist)' Cheers, Reinhold - -- - ------------------------------------------------------------------ Reinhold Kainhofer, Vienna University of Technology, Austria email: [EMAIL PROTECTED], http://reinhold.kainhofer.com/ * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/ * K Desktop Environment, http://www.kde.org, KOrganizer maintainer * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHuwRxTqjEwhXvPN0RAjP3AJ9VYdqM3UIxMvHsUxGB47GhfWnmzwCgmc6f w11DX2VWNXyeCbr90bXF7hg= =qc7i -----END PGP SIGNATURE----- _______________________________________________ lilypond-devel mailing list lilypond-devel@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-devel