lilypond-user
[Top][All Lists]
Advanced

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

Re: Input syntax question


From: David Wright
Subject: Re: Input syntax question
Date: Mon, 30 Sep 2019 00:27:36 -0500
User-agent: Mutt/1.10.1 (2018-07-13)

On Sun 29 Sep 2019 at 21:00:58 (-0400), Freeman Gilmore wrote:

> Aaron Hill wrote:
> > With quotation marks, you can break a lot of the rules:
> >
> > %%%%
> > \version "2.19.83"
> >
> > "Anything?! { c'4 } 😀" = { c'4 }
> >
> > { \"Anything?! { c'4 } 😀" }
> >
> 
> Then would { \"Anything?! { c'4 } 😀" } be  equivalent to { \{ c'4 } } ?

No. Typesetting { \"Anything?! { c'4 } 😀" } would give the same
output as { c'4 }. BTW there's no relationship between the
characters c'4 in the variable name and the note c'4 in the score.
The former might mean something to the human typing in the source,
but it means nothing to LP beyond being three ASCII characters c ' 4
in the middle of a variable name.

If the name contains otherwise illegal characters, then it must *always*
be enclosed in "". \{ doesn't mean anything, \"{" does. So you can write

"{" = g'4
"abcd" = a'4
spqr = f'4

{ \"{" \abcd \"spqr" }

for what it's worth.

> > Whether it is prudent to do such a thing is another matter.  (:

Has a LilyPond obfuscation contest ever been held? :)

Cheers,
David.



reply via email to

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