Re: good practices regarding page breaks -- full score and parts
Hi Leszek, Am 15.10.2020 um 15:13 schrieb lilypond-user-requ...@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
Re: good practices regarding page breaks -- full score and parts
Thank you all for your suggestions! This is very helpful. Leo and Christian, I will try the 'skip' idea: in this particular case I have 616 measures of straightforward 2/4, so it should not be too unwieldy. Kieren, I will investigate the edition-engraver... I've already attempted to learn it a few times, but maybe this time I'll succeed. You've all been very helpful. My thanks again! Cheers, Leszek. On Thu, 15 Oct 2020 at 15:13, Kieren MacMillan < kieren_macmil...@sympatico.ca> wrote: > Hi Leszek, > > > I would like to compile a full score and parts based on one file > containing musical definitions. I would like to put pagebreaks in specific > places in the full score, so that they would not operate when parts are > compiled. The way I'm doing it now is that I put a \pagebreak in one of the > parts and use tags. E.g. the oboe part "oboeMusic" may contain > > > > \tag #'fullscoreonly { \pageBreak } > > > > And in the full score the part figures in the score as > > \keepWithTag #'fullscoreonly \oboeMusic > > > > while in the part file the part is compiled as > > \removeWithTag #'fullscoreonly \oboeMusic > > > > I don't really like this solution; it's just not tidy... and I have to > remember which part I put the page breaks in. Are there any established > Lilypond practices for doing this? Is it e.g. possible to introduce some > sort of 'invisible part' on top of the rest which would just be used for > editorial stuff like this? > > I highly recommend looking into the edition-engraver for this purpose — > “editorial stuff” (including breaks/layout control) is its primary use > case, and it handles that kind of thing spectacularly. > > Cheers, > Kieren. > > > Kieren MacMillan, composer (he/him/his) > ‣ website: www.kierenmacmillan.info > ‣ email: kie...@kierenmacmillan.info > >
Re: good practices regarding page breaks -- full score and parts
Hi Leszek, > I would like to compile a full score and parts based on one file containing > musical definitions. I would like to put pagebreaks in specific places in the > full score, so that they would not operate when parts are compiled. The way > I'm doing it now is that I put a \pagebreak in one of the parts and use tags. > E.g. the oboe part "oboeMusic" may contain > > \tag #'fullscoreonly { \pageBreak } > > And in the full score the part figures in the score as > \keepWithTag #'fullscoreonly \oboeMusic > > while in the part file the part is compiled as > \removeWithTag #'fullscoreonly \oboeMusic > > I don't really like this solution; it's just not tidy... and I have to > remember which part I put the page breaks in. Are there any established > Lilypond practices for doing this? Is it e.g. possible to introduce some sort > of 'invisible part' on top of the rest which would just be used for editorial > stuff like this? I highly recommend looking into the edition-engraver for this purpose — “editorial stuff” (including breaks/layout control) is its primary use case, and it handles that kind of thing spectacularly. Cheers, Kieren. Kieren MacMillan, composer (he/him/his) ‣ website: www.kierenmacmillan.info ‣ email: kie...@kierenmacmillan.info
Re: good practices regarding page breaks -- full score and parts
Hi Leszek! I usually put the layout-Stuff in a separate voice, but I can imagine, this would be a total mess when dealing with many time signature changes. This sounds a lot like the "Invisible part" you're speaking of. music = { c1 c c c c c } breakVoice = { s1 s \pageBreak } \score { \new Staff {<< \music \breakVoice >> } } Best regards Christian Am Do., 15. Okt. 2020 um 14:20 Uhr schrieb Leszek Wroński : > Dear Experts, > > I would like to compile a full score and parts based on one file > containing musical definitions. I would like to put pagebreaks in specific > places in the full score, so that they would not operate when parts are > compiled. The way I'm doing it now is that I put a \pagebreak in one of the > parts and use tags. E.g. the oboe part "oboeMusic" may contain > > \tag #'fullscoreonly { \pageBreak } > > And in the full score the part figures in the score as > \keepWithTag #'fullscoreonly \oboeMusic > > while in the part file the part is compiled as > \removeWithTag #'fullscoreonly \oboeMusic > > I don't really like this solution; it's just not tidy... and I have to > remember which part I put the page breaks in. Are there any established > Lilypond practices for doing this? Is it e.g. possible to introduce some > sort of 'invisible part' on top of the rest which would just be used for > editorial stuff like this? > > Thanks in advance! > > Leszek Wronski. >
Re: good practices regarding page breaks -- full score and parts
Then your use of tags seems the best solution. Il giorno gio 15 ott 2020 alle 14:40, Leszek Wroński ha scritto: Thank you very much! I'm already doing that :-) Still, it's a 70+ pages single-movement work where I'd like to control page-breaking in a precise way in a few locations... Best regards, Leszek. On Thu, 15 Oct 2020 at 14:29, Federico Bruni wrote: Il giorno gio 15 ott 2020 alle 14:19, Leszek Wroński ha scritto: > I don't really like this solution; it's just not tidy... and I have > to remember which part I put the page breaks in. Are there any > established Lilypond practices for doing this? Is it e.g. possible to > introduce some sort of 'invisible part' on top of the rest which > would just be used for editorial stuff like this? Instead of using \pageBreak (within the music input), you may control the line and page breaking with two different \paper blocks, one for the part and one for the score (using \include).
Re: good practices regarding page breaks -- full score and parts
Thank you very much! I'm already doing that :-) Still, it's a 70+ pages single-movement work where I'd like to control page-breaking in a precise way in a few locations... Best regards, Leszek. On Thu, 15 Oct 2020 at 14:29, Federico Bruni wrote: > Il giorno gio 15 ott 2020 alle 14:19, Leszek Wroński > ha scritto: > > I don't really like this solution; it's just not tidy... and I have > > to remember which part I put the page breaks in. Are there any > > established Lilypond practices for doing this? Is it e.g. possible to > > introduce some sort of 'invisible part' on top of the rest which > > would just be used for editorial stuff like this? > > Instead of using \pageBreak (within the music input), you may control > the line and page breaking with two different \paper blocks, one for > the part and one for the score (using \include). > > > >
Re: good practices regarding page breaks -- full score and parts
Il giorno gio 15 ott 2020 alle 14:19, Leszek Wroński ha scritto: I don't really like this solution; it's just not tidy... and I have to remember which part I put the page breaks in. Are there any established Lilypond practices for doing this? Is it e.g. possible to introduce some sort of 'invisible part' on top of the rest which would just be used for editorial stuff like this? Instead of using \pageBreak (within the music input), you may control the line and page breaking with two different \paper blocks, one for the part and one for the score (using \include).
good practices regarding page breaks -- full score and parts
Dear Experts, I would like to compile a full score and parts based on one file containing musical definitions. I would like to put pagebreaks in specific places in the full score, so that they would not operate when parts are compiled. The way I'm doing it now is that I put a \pagebreak in one of the parts and use tags. E.g. the oboe part "oboeMusic" may contain \tag #'fullscoreonly { \pageBreak } And in the full score the part figures in the score as \keepWithTag #'fullscoreonly \oboeMusic while in the part file the part is compiled as \removeWithTag #'fullscoreonly \oboeMusic I don't really like this solution; it's just not tidy... and I have to remember which part I put the page breaks in. Are there any established Lilypond practices for doing this? Is it e.g. possible to introduce some sort of 'invisible part' on top of the rest which would just be used for editorial stuff like this? Thanks in advance! Leszek Wronski.