lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Staff.instrumentName


From: Reinhold Kainhofer
Subject: Re: Staff.instrumentName
Date: Fri, 23 Jan 2009 21:41:45 +0100
User-agent: KMail/1.10.3 (Linux/2.6.27-9-generic; KDE/4.1.3; i686; ; )

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Freitag, 23. Januar 2009 21:29:40 schrieb Martin Tarenskeen:
> Hi,
>
> Just wondering. What's the difference between
>
>       \set Staff.instrumentName = #"Violin I "
>
> and
>
>       \set Staff.instrumentName = "Violin I "
>
> since both seem to work in my little experiments.

There is no fundamental difference. The # simply indicates that the following 
expression is a Scheme (the programming language that is used to tweak 
LilyPond) expression. For strings the parser treats them similar with and 
without the #. However, other expressions like numbers need the # in front of 
them, otherwise you'll get errors.
For this reason, our docs use the # also for strings, and everyone is advised 
to do the same for reasons of consistency. As you noticed, it is not strictly 
required, but still a good idea.

Cheers,
Reinhold
- -- 
- ------------------------------------------------------------------
Reinhold Kainhofer, address@hidden, http://reinhold.kainhofer.com/
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * LilyPond, Music typesetting, http://www.lilypond.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFJeiuLTqjEwhXvPN0RAjoAAJ4jfEKrzYw8alhx5qhDd+BZydWW3wCeOKhN
SUlN469JwlojixaUiJFUWok=
=RI9S
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]