Re: variables in \book { }

2016-02-17 Thread Noeck
>> I don’t think that not having a proper >> scope for each book/bookpart is a problem. > > I think it is. > >> So I’d vote for this change. > > I vote against it. It does not make sense that when I write I would also say, without its own scope there is little gain and it will just lead to

Re: variables in \book { }

2016-02-17 Thread David Kastrup
Simon Albrecht writes: > On 17.02.2016 13:27, David Kastrup wrote: >> Graham King writes: >> >>> >>>\book { >>> music = \relative { c' d e f } >>> \score { >>> \music >>> } >>>

Re: variables in \book { }

2016-02-17 Thread Simon Albrecht
On 17.02.2016 13:27, David Kastrup wrote: Graham King writes: \book { music = \relative { c' d e f } \score { \music } } The problem is that it would likely be possible to teach LilyPond's

Re: variables in \book { }

2016-02-17 Thread David Kastrup
Graham King writes: > On Wed, 2016-02-17 at 10:58 +0100, David Kastrup wrote: > >> The problem with the repeated use of "I've tried that" is that nobody >> can really guess just _what_ exactly you have tried with what error >> messages as the result. And nobody can

Re: variables in \book { }

2016-02-17 Thread Graham King
On Wed, 2016-02-17 at 10:58 +0100, David Kastrup wrote: > Graham King writes: > > > Thanks Ben, > > that will be useful once I've found a solution to the immediate problem: > > defining and using a variable within \book{} or \bookpart{} or > > \book[part]{ \score {

Re: variables in \book { }

2016-02-17 Thread Jan-Peter Voigt
... better to use define-void-function %%% snip %%% pdefine = #(define-void-function (sym val)(symbol? scheme?) (ly:parser-define! sym val)) %%% snip %%% Cheers Jan-Peter Am 17.02.2016 um 10:56 schrieb Jan-Peter Voigt: > Hi Graham, > > I didn't went through the whole thread, but IIUC, the

Re: variables in \book { }

2016-02-17 Thread David Kastrup
Graham King writes: > Thanks Ben, > that will be useful once I've found a solution to the immediate problem: > defining and using a variable within \book{} or \bookpart{} or > \book[part]{ \score { }} > > \version "2.19.35" > \book { > music

Re: variables in \book { }

2016-02-17 Thread Jan-Peter Voigt
Hi Graham, I didn't went through the whole thread, but IIUC, the problem is about defining variables inside a pair of braces. Sometimes I use a helper function to define variables: %%% snip %%% \version "2.19.35" % a little helper function using ly:parser-define! pdefine =

Re: variables in \book { }

2016-02-17 Thread Graham King
On Tue, 2016-02-16 at 19:27 -0500, Ben Strecker wrote: > Graham, > > > > Have you tried putting each score inside it’s own \bookpart? > > > The documentation for ragged-last-bottom says: > > > ragged-last-bottom > > > > If this is set to false, then the last

Re: variables in \book { }

2016-02-16 Thread Ben Strecker
Graham, Have you tried putting each score inside it’s own \bookpart? The documentation for ragged-last-bottom says: ragged-last-bottom <> <>If this is set to false, then the last page, and the last page in each section created with a \bookpart block, will be vertically justified in the same

Re: variables in \book { }

2016-02-16 Thread Graham King
On Wed, 2016-02-17 at 00:20 +0100, David Kastrup wrote: > Graham King writes: > > > On Tue, 2016-02-16 at 19:15 +0100, David Kastrup wrote: > > > > > >> > >> However, your original posting stated: > >> > >> > (Alternatively, if there's a way to make

Re: variables in \book { }

2016-02-16 Thread David Kastrup
Graham King writes: > On Tue, 2016-02-16 at 19:15 +0100, David Kastrup wrote: > > >> >> However, your original posting stated: >> >> > (Alternatively, if there's a way to make book-titling.ily do a >> > ragged-last-bottom for each piece, that would save even more

Re: variables in \book { }

2016-02-16 Thread Graham King
On Tue, 2016-02-16 at 19:15 +0100, David Kastrup wrote: > > However, your original posting stated: > > > (Alternatively, if there's a way to make book-titling.ily do a > > ragged-last-bottom for each piece, that would save even more work). > > Have you actually tried > > \layout { >

Re: variables in \book { }

2016-02-16 Thread David Kastrup
Graham King writes: > On Tue, 2016-02-16 at 18:36 +0100, David Kastrup wrote: > >> Graham King writes: >> >> > oops, just found the simple fix (I think): > > > >> Have you actually _read_ your question? >> > > Yes, read the question,

Re: variables in \book { }

2016-02-16 Thread Graham King
On Tue, 2016-02-16 at 18:36 +0100, David Kastrup wrote: > Graham King writes: > > > oops, just found the simple fix (I think): > Have you actually _read_ your question? > Yes, read the question, but failed to read the rubbish I put forward as a "simple fix".

Re: variables in \book { }

2016-02-16 Thread David Kastrup
Graham King writes: > oops, just found the simple fix (I think): > > > \version "2.19.35" > > music = { \relative { c' d e f }} > > \book { > \score { > \music > } > } > > One extra

Re: variables in \book { }

2016-02-16 Thread Graham King
oops, just found the simple fix (I think): \version "2.19.35" music = { \relative { c' d e f }} \book { \score { \music } } One extra pair of braces around the music expression. Apologies for the noise.

variables in \book { }

2016-02-16 Thread Graham King
n "2.19.35" music = \relative { c' d e f } \book { \score { \music } } works fine. To avoid having to restructure a number of files, it would be very handy to be able to use the former layout (defining music = { ... }, and a number of oth