Re: Template A.4.1 String Quartet

Jean Abou Samra <[email protected]>
Newsgroups gmane.comp.gnu.lilypond.bugs
Message-ID <[email protected]>
Hi,

Please keep the list in copy.


Le 25/08/2022 à 18:20, Herbert Plass a écrit :
> Dear Jean
>
> Am 25.08.22 um 16:41 schrieb Jean Abou Samra:
>  Le 25/08/2022 à 09:49, Herbert Plass a écrit :
>>>
>>> The template given in Learning Manual will not work with \grace at 
>>> the beginning of a score and after repetition.
>>>
>>> \global must not be in the \score part but in the individual voices.
>>
>> Why? It works either way. The template given in the documentation uses
>> << \global \violinXXX >> for each staff. This works just as well.
>>
>
> I tried the code below with 2.22.2. Editor: frescobaldi, System: 
> debian 10.
>
> The result is shown in the pdf.
>
> What is the reason for this, if not the position of \global?
>
> Regards
> herbert
>
>
> global= {
>   \time 4/4
>   \key c \major
> }
>
> violinOne = \new Voice \relative c'' {
>   \grace{e16 f g} c2 d
>   e1
>   \bar "|."
> }
>
> violinTwo = \new Voice \relative c'' {
>   \grace{e16 f g} g2 f
>   e1
>   \bar "|."
> }
>
> viola = \new Voice \relative c' {
>   \clef alto
>   \grace{e16 f g} e2 d
>   c1
>   \bar "|."
> }
>
> cello = \new Voice \relative c' {
>   \clef bass
>   \grace{e16 f g} c2 b
>   a1
>   \bar "|."
> }
>
> \score {
>   \new StaffGroup <<
>     \new Staff \with { instrumentName = "Violin 1" }
>     << \global \violinOne >>
>     \new Staff \with { instrumentName = "Violin 2" }
>     << \global \violinTwo >>
>     \new Staff \with { instrumentName = "Viola" }
>     << \global \viola >>
>     \new Staff \with { instrumentName = "Cello" }
>     << \global \cello >>
>   >>
>   \layout { }
>   \midi { }
> } 



You need to either use \grace { s16*3 } at the end of \global, or use
{ \global \violinOne } instead of << \global \violinOne >>. Otherwise,
the << >> construct makes the input have unbalanced graces in simultaneous
expressions, which is what issue #34 is about.

Best,
Jean



_______________________________________________
bug-lilypond mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-lilypond
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.