[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Geting the list of MIDI instrument names
From: |
Reinhold Kainhofer |
Subject: |
Re: Geting the list of MIDI instrument names |
Date: |
Tue, 19 Feb 2008 17:31:41 +0100 |
User-agent: |
KMail/1.9.6 |
-----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: address@hidden, 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-----
- Geting the list of MIDI instrument names, Wilbert Berendsen, 2008/02/19
- Re: Geting the list of MIDI instrument names,
Reinhold Kainhofer <=
- Re: Geting the list of MIDI instrument names, Ralf Mattes, 2008/02/19
- Re: Geting the list of MIDI instrument names, Reinhold Kainhofer, 2008/02/20
- Re: Geting the list of MIDI instrument names, Ralf Mattes, 2008/02/21
- Re: Geting the list of MIDI instrument names, Reinhold Kainhofer, 2008/02/21
- Re: Geting the list of MIDI instrument names, Han-Wen Nienhuys, 2008/02/21
- Re: Geting the list of MIDI instrument names, Valentin Villenave, 2008/02/21
- Re: Geting the list of MIDI instrument names, Reinhold Kainhofer, 2008/02/21
- Re: Geting the list of MIDI instrument names, Graham Percival, 2008/02/22
- Re: Geting the list of MIDI instrument names, Reinhold Kainhofer, 2008/02/22