lilypond-user
[Top][All Lists]
Advanced

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

Re: Cannot use \layout in a variable


From: Peter Toye
Subject: Re: Cannot use \layout in a variable
Date: Wed, 11 Jan 2017 16:48:55 +0000

David,

Sorry, I used Nabble to enter my comment, and the raw text seems to have been expunged. Go to
http://lilypond.1069038.n5.nabble.com/Cannot-use-layout-in-a-variable-td199054.html  and all will be revealed!

Best regards,

Peter
mailto:address@hidden
www.ptoye.com

-------------------------
Wednesday, January 11, 2017, 3:46:16 PM, you wrote:

> On Wed 11 Jan 2017 at 05:03:21 (-0700), ptoye wrote:
>> Thanks all for putting me right. I have to say that the documentation is very
>> confusing as to the syntax. From the Learning manual:

>> which implies that the brackets are needed, but it's followed by:

>> and later by:

>> which don't have the brackets.

>> How does the parser know when the variable definition has finished if it can
>> be on multiple lines?

> Without the quotations, it's tricky to guess what you've seen.
> Some hints:

> { c' }         is a valid input file: a music _expression_.

> << c' >>       too because << >> indicates that the _expression_(s) contained
> are simultaneous. In this example, there's just one.

> \absolute c'   is a valid input file: the command is a music _expression_,
> and the command's argument is a music _expression_ composed of a single item.
> If you write more than one item, you need { } or << >> to show whether
> the expressions are sequential or simultaneous.

> The same applies to defining variables. Normally you will see
> something = { a' b' c'' }   but   something = a'
> is also allowed because there's only a single item after the =.

> A lot of the examples have just \relative { ... }
> which is a valid input file.

> Finally, if you put several of the above into a file, each will give
> you a separate score. That's because LP wraps the individual expressions
> in a great deal of context stuff automatically; voice, staff and score.

> Cheers,
> David.
reply via email to

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