lilypond-user
[Top][All Lists]
Advanced

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

Can't refer to variable directly after defining it


From: caagr98
Subject: Can't refer to variable directly after defining it
Date: Sat, 22 Apr 2017 23:32:09 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.0

For some reason, it seems I can't refer to a variable directly after defining it. As soon as I do /anything/ else, it works, but `foo={...} \foo` gives errors.

```
$ cat bug.ly
\version "2.18.2"
foo = {c' c' c' c'}
% bar = {d' d' d' d'}
% {e' e' e' e'}
% #foo
\foo
$ lilypond bug.ly
GNU LilyPond 2.18.2
Processing `bug.ly'
Parsing...
bug.ly:6:1: error: unknown escaped string: `\foo'

\foo
bug.ly:6:5: error: syntax error, unexpected end of input
\foo

fatal error: failed files: "bug"
```

Uncommenting either of the three commented-out lines makes it work, all with the same resulting PDF.

I'm currently using `\void {}` as a workaround, but I'd obviously prefer not having to do that.




reply via email to

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