lilypond-user
[Top][All Lists]
Advanced

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

Re: good practices regarding page breaks -- full score and parts


From: Klaus Blum
Subject: Re: good practices regarding page breaks -- full score and parts
Date: Thu, 15 Oct 2020 16:25:39 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1

Hi Leszek,

Am 15.10.2020 um 15:13 schrieb lilypond-user-request@gnu.org:
I would like to put pagebreaks in specific places in
the full score, so that they would not operate when parts are compiled.

I can confirm all the replies that recommend include files and invisible
voices. (I truly should learn how to use the edition engraver, but still
didn't find the time.)

This is what I've been using so far:

% ---------- definitions.ily ----------
\version "2.20.0"

violin_voice = { c'1 d' e' f' g' a' b' }

cello_voice = { \clef bass  c1 d e f g a b }

break_voice = {  % "invisible voice"
  s1 s  \bar "||" \mark "A" s s
  \pb
  s s s \bar "|."
}
% -------------------------------------

The invisible voice also cares about bar lines, rehearsal marks etc.
\pb still needs to be defined. For the score, it's "\pageBreak" while
for the parts, it simply does nothing:

% ---------- score.ly ----------
\version "2.20.0"
pb = \pageBreak
\include "definitions.ily"

\score {
  <<
    \new Staff << \violin_voice \break_voice >>
    \new Staff << \cello_voice \break_voice >>
  >>
}
% ------------------------------

% ---------- parts.ly ----------
\version "2.20.0"
pb = {} % does nothing
\include "definitions.ily"

\markup "Violin part:"
\score {
  \new Staff << \violin_voice \break_voice >>
}

\markup "Cello part:"
\score {
  \new Staff << \cello_voice \break_voice >>
}
% ------------------------------

...not perfect, but simple.  :-)
Hope this helps.

Cheers,
Klaus



reply via email to

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