bug-lilypond
[Top][All Lists]
Advanced

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

Re: when adding \new Staff to a StaffGroup, ledger lines not rendered if


From: Simon Albrecht
Subject: Re: when adding \new Staff to a StaffGroup, ledger lines not rendered if clef is specified.
Date: Fri, 29 Jan 2016 19:16:29 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1

On 29.01.2016 16:29, Andy Deitrich wrote:
% The example here renders perfectly if \clef bass is removed
% but as is, the ledger lines in the new staff are not rendered.

\version "2.18.2"

\new StaffGroup \relative c {
        \time 6/8
        \new Staff
        c''2. | c2.
        <<
        {<bes des f>2.~ | <bes des f>}
        \new Staff
        \clef bass
        {ges,,2. | f}
        >>
        }

Phil already sorted out the crucial things, but I’d like to make a few more recommendations for structuring your code:

%%%%%%%%%%%%
\version "2.18.2"

aux = {
  \time 6/8
}
one = \relative {
  c''2. | c2.
  <bes des f>2.~ | q % ‘q’ repeats the previous chord
}
two = \relative {
  \clef bass
  ges,2. | f
}

\new StaffGroup <<
  \aux
  \new Staff \one
  \new Staff \two
>>
%%%%%%%%%%%

This gives you a more robust, more legible structure.

Best, Simon



reply via email to

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