lilypond-user
[Top][All Lists]
Advanced

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

Re: Key and time change at end of piece


From: Aberforth D - Instrumentals
Subject: Re: Key and time change at end of piece
Date: Fri, 17 Feb 2023 14:40:32 +0100

Thank you all for the useful input. I have tried both solutions presented by everybody and they both work fine. The output it exactly the same with both solutions. I find the solution with the tags more elegant though, so I think I will be using that. Below are 3 short scores. The first and second score use the two solutions. I commented out the padding tweak because it doesn't look all right when included. The third score shows how it would work when pieces are combined with the tag solution.
Cheers,
Arnold

\version "2.20.0"
\language "english"

music = { c'4 d' e' f' g' a' b' c'' c'4 d' e' f' g' a' b' c'' c'4 d' e' f' g' a' b' c'' }

\score {
  \new Staff {
    \override Staff.StaffSymbol.break-align-symbols =
    #'(time-signature key-cancellation key-signature staff-bar break-alignment)
    \key f \major \time 4/4
    \music \bar "||"
    %\tweak X-extent #'(0.25 . 2.4)
    \key g \major \time 3/4
  }
}

\score {
  \new Staff {
    \key f \major \time 4/4
    \music \bar "||"
    \key g \major \time 3/4
    \tag #'spacer { s4 }    
  }
}

\score {
  \removeWithTag #'spacer
  \new Staff {
    \key f \major \time 4/4
    \music \bar "||"
    \key g \major \time 3/4
    \tag #'spacer { s4 }    
    \break
    \music \bar "|."
  }
}

On Fri, 17 Feb 2023 at 13:51, Pierre Perol-Schneider <pierre.schneider.paris@gmail.com> wrote:
Sorry, wrong link :  https://lists.gnu.org/archive/html/lilypond-user/2020-01/msg00541.html

Le ven. 17 févr. 2023 à 13:08, Pierre Perol-Schneider <pierre.schneider.paris@gmail.com> a écrit :
Hi Aberforth,
HTH, Cheers,
Pierre

Le ven. 17 févr. 2023 à 10:36, Aberforth D - Instrumentals <aberforthg@gmail.com> a écrit :
Hello,

I am working on a complete piano vocal score for an opera. To keep things manageable I work on individual pieces one at a time, one file per piece. I intend to combine them later with a superseding file into a book. My problem is this: Sometimes, a piece ends with a key change or time change in anticipation of the next piece. In such cases a piece typically ends with a double barline, because it is not the real end of the piece, followed by the key change and time change symbols and open ended staff lines at the right margin. However, when I use the following code, the staff lines are not printed. How can I force Lilypond to print the staff lines all the way to the end, without actually including more musical content? Below is a short example that illustrates the problem. Thank you for your help.

\version "2.20.0"
\language "english"

\score {
  \new Staff {
    \key f \major \time 4/4
    c'4 d' e' f' g' a' b' c'' \bar "||"
    \clef "bass" \key g \major \time 3/4
  }
}


reply via email to

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