Re: Variables and Bookpart

2023-03-12 Thread Werner LEMBERG
> use: > > ``` > % movement1.ly > variable = \relative c'' { ... } > bookpartI = \bookpart { \score { \variable } } > > % movement2.ly > variableII = \relative c'' { ... } > bookpartII = \bookpart { \score { \variableII } } > > % main.ly > \include "movement1.ly" > \include "movement2.ly" >

RE: Variables and Bookpart

2023-03-12 Thread Mark Stephen Mrotek
; 'Hans Aikema' Cc: 'lilypond-user mailinglist' Subject: Re: Variables and Bookpart Le dimanche 12 mars 2023 à 16:54 -0700, Mark Stephen Mrotek a écrit : Hans, Thank you for your advice. That format is not what is given in the manual. \bookpart { \header { … } \score { … } }. I find

Re: Variables and Bookpart

2023-03-12 Thread Saul Tobin
t. For the full score, that doesn't require > \parserDefine because each movement can be its own \bookpart. However, for > printing parts, I find it helpful to have all instruments output in the > same \book, with each instrument as a \bookpart. That means that I need to > be able to redefine the m

RE: Variables and Bookpart

2023-03-12 Thread Mark Stephen Mrotek
ypond-user@gnu.org; Hans Aikema Cc: j...@abou-samra.fr Subject: Re: Variables and Bookpart If I’m thinking correctly what Mark attempts to do is to have multiple files containing scores and then to \bookpart { \include ... } to combine these scores. The problem here is quite simple: The nota

Re: Variables and Bookpart

2023-03-12 Thread Jean Abou Samra
put in the same \book, with each > instrument as a \bookpart. That means that I need to be able to redefine the > music variables within a \bookpart. > If I were willing to use different variable names for instruments in each > movement this wouldn't be needed, but I just find that ugl

Re: Variables and Bookpart

2023-03-12 Thread Jean Abou Samra
Le dimanche 12 mars 2023 à 16:54 -0700, Mark Stephen Mrotek a écrit : > Hans, >   > Thank you for your advice. > That format is not what is given in the manual. >   > \bookpart { >   \header { … } >   \score { … } > }. I find this fascinating, because the user who asked this

Re: Variables and Bookpart

2023-03-12 Thread Saul Tobin
the music variables within a \bookpart. If I were willing to use different variable names for instruments in each movement this wouldn't be needed, but I just find that ugly. I want my violinI to always be called violinI. There might be other ways to accomplish a similar goal but this has worked

RE: Variables and Bookpart

2023-03-12 Thread Mark Stephen Mrotek
...@aikebah.net] Sent: Sunday, March 12, 2023 3:51 PM To: Mark Stephen Mrotek Cc: lilypond-user mailinglist Subject: Re: Variables and Bookpart On 12 Mar 2023, at 20:38, Mark Stephen Mrotek mailto:carsonm...@ca.rr.com> > wrote: Jean Abou Samra, Thank you. Yes variable

Re: Variables and Bookpart

2023-03-12 Thread Jean Abou Samra
Le dimanche 12 mars 2023 à 16:34 -0700, Saul Tobin a écrit : > A slightly nicer syntax to workaround this limitation is to use the function: > > parserDefine = > #(define-void-function (name val)(symbol? scheme?) >     (ly:parser-define! name val)) > > Then instead of var = { ... } you can

Re: Variables and Bookpart

2023-03-12 Thread Jean Abou Samra
Le lundi 13 mars 2023 à 00:24 +0100, Valentin Petzel a écrit : > (by the way this also allows us to define bindings the parser does not handle > > well such as e.g. \c: c = ... will not be allowed, as c is a note name, but > #(define c ...) works). You can write ``` "c" = ... ``` though.

Re: Variables and Bookpart

2023-03-12 Thread Saul Tobin
t; > Your kind attention is appreciated.’ > > > > > > Mark > > > > […] > > > > Mark, > > > > Based on your response I think you did not get the nuances of what Jean > > tried to tell you. > > > > The copying/pasting of

Re: Variables and Bookpart

2023-03-12 Thread Valentin Petzel
is already properly outside the > \score) INSIDE the \bookpart, while it should be outside both the \bookpart > and the \score > > So you should > > {copy variables to here} > \bookpart { > {copy rest of the score here} > } > > When using copy/paste of your score into a file with a \bookpart > > > HTH > Hans signature.asc Description: This is a digitally signed message part.

Re: Variables and Bookpart

2023-03-12 Thread Hans Aikema
g score INSIDE \bookpart means that you are copying your variable definition (which is already properly outside the \score) INSIDE the \bookpart, while it should be outside both the \bookpart and the \score So you should {copy variables to here} \bookpart { {copy rest of the score here}

RE: Variables and Bookpart

2023-03-12 Thread Mark Stephen Mrotek
attention is appreciated.’ Mark From: Jean Abou Samra [mailto:j...@abou-samra.fr] Sent: Sunday, March 12, 2023 11:23 AM To: Mark Stephen Mrotek ; lilypond-user@gnu.org Subject: Re: Variables and Bookpart Le dimanche 12 mars 2023 à 11:16 -0700, Mark Stephen Mrotek a écrit : Hello

Re: Variables and Bookpart

2023-03-12 Thread Jean Abou Samra
Le dimanche 12 mars 2023 à 11:16 -0700, Mark Stephen Mrotek a écrit : > Hello, >   > Each movement of a piano piece has a separate file. In each movement the > various voices are identified by a variable, e.g., ArightOne, BleftTwo. Each > file compiles perfectly individually. > When the

Variables and Bookpart

2023-03-12 Thread Mark Stephen Mrotek
Hello, Each movement of a piano piece has a separate file. In each movement the various voices are identified by a variable, e.g., ArightOne, BleftTwo. Each file compiles perfectly individually. When the file is copied into \bookpart { \header { } Copied here } It does not compile