Re: Trouble Combining Repeats and Closing Bars in tunes
Thanks David, This is just what I needed! Regards, Ben On Mon, 2016-10-17 at 23:52 -0500, David Wright wrote: > On Mon 17 Oct 2016 at 23:24:51 (-0400), Ben Beeson wrote: > > > > I am looking at a 4 - part tune where the first and third parts are > > repeated and the second and fourth parts are not repeated. Try as I > > may, I cannot get Lilypond to put the repeats and closing bars in > > the > > right place when engraving the tune. The following is just about as > > simple as I can get it and still show the issue. > > > > % BarExample.ly > > \version "2.19.48" > > > > example = { \time 2/4 > > \relative c''{ > > \repeat volta 2 { a8 a8 a8 a8 | a8 a8 > > a8 > > a8 | \break } > > \bar ".|" d8 d8 d8 d8 > > > > > > d8 d8 d8 d8 | \bar "|." \break > > \repeat volta 2 { a8 a8 a8 a8 | a8 a8 > > a8 > > a8 | \break } > > \bar ".|" d8 d8 d8 > > d8 | > > d8 d8 d8 d8 | \bar "|." \break } > > } > > > > > > \score > > { > > \new Staff << > > > > \new Voice { > > \example > > } > > >> > > } > > % end BarExample.ly > > > > This produces the following which is clearly not what I intended > > since > > the first and third lines should be repeated and the second and > > fourth > > lines are not repeated. > > > > > > What am I doing wrong and what is the best way to fix it short of > > using separate score blocks for each part? > > Just let LP choose the barline types. > > Cheers, > David. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Trouble Combining Repeats and Closing Bars in tunes
On Mon 17 Oct 2016 at 23:24:51 (-0400), Ben Beeson wrote: > I am looking at a 4 - part tune where the first and third parts are > repeated and the second and fourth parts are not repeated. Try as I > may, I cannot get Lilypond to put the repeats and closing bars in the > right place when engraving the tune. The following is just about as > simple as I can get it and still show the issue. > > % BarExample.ly > \version "2.19.48" > > example = { \time 2/4 > \relative c''{ > \repeat volta 2 { a8 a8 a8 a8 | a8 a8 a8 > a8 | \break } > \bar ".|" d8 d8 d8 d8 > | d8 d8 d8 d8 | \bar "|." \break > \repeat volta 2 { a8 a8 a8 a8 | a8 a8 a8 > a8 | \break } > \bar ".|" d8 d8 d8 d8 | > d8 d8 d8 d8 | \bar "|." \break } > } > > > \score > { > \new Staff << > > \new Voice { > \example > } > >> > } > % end BarExample.ly > > This produces the following which is clearly not what I intended since > the first and third lines should be repeated and the second and fourth > lines are not repeated. > > > What am I doing wrong and what is the best way to fix it short of > using separate score blocks for each part? Just let LP choose the barline types. Cheers, David. { \time 2/4 \relative c''{ \repeat volta 2 { a8 a8 a8 a8 | a8 a8 a8 a8 | \break } d8 d8 d8 d8 | d8 d8 d8 d8 | \break \repeat volta 2 { a8 a8 a8 a8 | a8 a8 a8 a8 | \break } d8 d8 d8 d8 | d8 d8 d8 d8 | \bar "|." } } a.pdf Description: Adobe PDF document ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Trouble Combining Repeats and Closing Bars in tunes
Am 18.10.2016 um 05:24 schrieb Ben Beeson: Hi, I am looking at a 4 - part tune where the first and third parts are repeated and the second and fourth parts are not repeated. Try as I may, I cannot get Lilypond to put the repeats and closing bars in the right place when engraving the tune. The following is just about as simple as I can get it and still show the issue. If you use \repeat volta 2 { ... } and then put a \bar "..." command afterwards, this bar command overrides the repeat bar line – so in fact, the line is repeated internally for lilypond, but you can't see it. In this case, you'll have to define your own repeat bar line at the beginning of your document: #(define-bar-line ":|.-.|" ":|." ".|" "|.") and use it like this: \repeat volta 2 { ... } \bar ":|.-.|" \bar "|." The way lilypond deals internally with repeats versus explicitly given barlines is not optimal yet :-( HTH, Marc ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Trouble Combining Repeats and Closing Bars in tunes
Hi, I am looking at a 4 - part tune where the first and third parts are repeated and the second and fourth parts are not repeated. Try as I may, I cannot get Lilypond to put the repeats and closing bars in the right place when engraving the tune. The following is just about as simple as I can get it and still show the issue. % BarExample.ly \version "2.19.48" example = { \time 2/4 \relative c''{ \repeat volta 2 { a8 a8 a8 a8 | a8 a8 a8 a8 | \break } \bar ".|" d8 d8 d8 d8 | d8 d8 d8 d8 | \bar "|." \break \repeat volta 2 { a8 a8 a8 a8 | a8 a8 a8 a8 | \break } \bar ".|" d8 d8 d8 d8 | d8 d8 d8 d8 | \bar "|." \break } } \score { \new Staff << \new Voice { \example } >> } % end BarExample.ly This produces the following which is clearly not what I intended since the first and third lines should be repeated and the second and fourth lines are not repeated. What am I doing wrong and what is the best way to fix it short of using separate score blocks for each part? Thanks in advance for your help, Ben ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user