Re: I ought to have a bar line here...
Am Mo., 26. Okt. 2020 um 23:47 Uhr schrieb Carl Sorensen : > > > > On Mon, Oct 26, 2020 at 4:35 PM Thomas Morley > wrote: >> >> Hi Carl, >> >> Am Mo., 26. Okt. 2020 um 23:04 Uhr schrieb Carl Sorensen >> : >> > >> > Try this: >> >> > \defineBarLine ".|:-|." #'("|." ".|:" "") >> >> Though, \defineBarLine ".|:-|." #'("|." ".|:" #f) _should_ work as well. >> >> It's a bug in 'ly:bar-line::calc-anchor' in bar-line.scm, triggered by >> the RehearsalMark requiring an anchor. >> The anchor-calculating procedure compares the span-glyph using >> string=? which bombs out if span-glyph is not a string. >> One should likely use equal? here. > > > Thanks, Harm! Sometimes it's almost as good to be lucky as to be good. You > are absolutely right, of course, and were I not too lazy to do so, I'd have > looked up the line where the actual error was. Instead I just saw that #f > didn't work, so I changed to "", Patch's up https://gitlab.com/lilypond/lilypond/-/merge_requests/483 Cheers, Harm
Re: I ought to have a bar line here...
On Mon, Oct 26, 2020 at 4:35 PM Thomas Morley wrote: > Hi Carl, > > Am Mo., 26. Okt. 2020 um 23:04 Uhr schrieb Carl Sorensen < > c_soren...@byu.edu>: > > > > Try this: > > > \defineBarLine ".|:-|." #'("|." ".|:" "") > > Though, \defineBarLine ".|:-|." #'("|." ".|:" #f) _should_ work as well. > > It's a bug in 'ly:bar-line::calc-anchor' in bar-line.scm, triggered by > the RehearsalMark requiring an anchor. > The anchor-calculating procedure compares the span-glyph using > string=? which bombs out if span-glyph is not a string. > One should likely use equal? here. > Thanks, Harm! Sometimes it's almost as good to be lucky as to be good. You are absolutely right, of course, and were I not too lazy to do so, I'd have looked up the line where the actual error was. Instead I just saw that #f didn't work, so I changed to "", Also, Mike, while my comment about \define always going at the top level, that same thing is NOT true in general for functions of the form \defineXXX. I can't think of any cases where it causes problems to put them at the top level. But it's not strictly required, and the use of \defineBarLine inside the music expression was not the cause of the errors. I just wanted to clear up my possibly confusing statement. Thanks, Carl
Re: I ought to have a bar line here...
On Mon, Oct 26, 2020 at 4:07 PM Mike Dean wrote: > Hi Carl: > Is \include "english.ly" different from \language "english"? > It's an old form that predates \language "english". I'm an old dog, so sometimes I forget the new tricks. At any rate, your snippet didn't include \language "english", so I had to fix it. > > Part of my residing in the weeds is not being sure where \define command > (and its relatives like \defineBarLine) ought to go...while the > compilation didn't crash, the bar line construction was ignored in this case > \define always goes at the top level -- outside of any other expressions. The other change I had to make in order to avoid errors was to replace #f with "" as the third element in the \defineBarLine list. The documentation allows the use of #f, but it threw an error and I changed it to "", which worked. That was a successful guess on my part. Carl
Re: I ought to have a bar line here...
Hi Carl, Am Mo., 26. Okt. 2020 um 23:04 Uhr schrieb Carl Sorensen : > > Try this: > \defineBarLine ".|:-|." #'("|." ".|:" "") Though, \defineBarLine ".|:-|." #'("|." ".|:" #f) _should_ work as well. It's a bug in 'ly:bar-line::calc-anchor' in bar-line.scm, triggered by the RehearsalMark requiring an anchor. The anchor-calculating procedure compares the span-glyph using string=? which bombs out if span-glyph is not a string. One should likely use equal? here. I'll check that more thoroughly and probably ut up a patch. Cheers, Harm
Re: I ought to have a bar line here...
On 2020-10-26 3:03 pm, Mike Dean wrote: Hi Carl: Is \include "english.ly" different from \language "english"? Part of my residing in the weeds is not being sure where \define command (and its relatives like \defineBarLine) ought to go...while the compilation didn't crash, the bar line construction was ignored in this case Mike Dean \language "english" is preferred over \include "english.ly". The latter is a vestige of older LilyPond versions where the \language command did not exist, and the "english.ly" include files did more stuff. Now, "english.ly" is just a \version and \language statement. I think you can get away with \defineBarLine being inside music, but it would probably be poor practice. It is better to place all definition (or definition-type things) at the top-level. The only exceptions are things that specifically require scope, like \paper variables. As to why the bar line did not appear in your snippet, you redefined the bar twice in the same moment. Only use \bar once. In this case you would place the \bar command at the end of the alternative or at the beginning of the "Trio" section. As to which, that is probably personal taste. -- Aaron Hill
Re: I ought to have a bar line here...
Ah, success! (Carl: you probably took out the barline repeat I had at the Trio, but it just now dawned on me to do that) Thanks for your help!!! Mike Dean On Mon, Oct 26, 2020 at 3:03 PM Mike Dean wrote: > Hi Carl: > Is \include "english.ly" different from \language "english"? > > Part of my residing in the weeds is not being sure where \define command > (and its relatives like \defineBarLine) ought to go...while the > compilation didn't crash, the bar line construction was ignored in this case > Mike Dean > > > On Mon, Oct 26, 2020 at 2:56 PM Carl Sorensen wrote: > >> Try this: >> >> >> >> \version "2.20.00" >> >> \include "english.ly" >> >> \defineBarLine ".|:-|." #'("|." ".|:" "") >> >> >> >> { >> >> \repeat volta 2 { >> >> d2 d8 c d e | f4 f8. e16 d2 | e2 e8 d e f | g4 g8. f16 e2 | >> >> a4 a8. g16 f8. g16 a8. f16 | g4 g8. f16 e8. f16 g8. e16 | >> >> g4 a8. g16 f8. f16 e8. e16 | d4 g8. g16 g4 r8 g, | >> >> c4. g8 c4 d | e4. c8 e4 f | g e f d |} >> >> \alternative { >> >>{c c8. c16 c4 r } >> >>{c c8. c16 c4\mark "Fine" r \bar ".|:-|." } >> >> } >> >> >> >> \break >> >> \mark "Trio" a4.-\p r16 e a8. e16 gs8. e16 | a4. r16 e a8. e16 gs8. e16 | >> >> a4 c b e | d8. c16 b8. c16 b2 | >> >> a4. r16 e a8. e16 gs8. e16 | a4. r16 e a8. e16 gs8. e16 | >> >> a4 c b e | a,4 a8. a16 a4 r | >> >> } >> >> >> >> Carl >> >> >> >> >> >> *From: *lilypond-user > gmail@gnu.org> on behalf of Mike Dean >> *Date: *Monday, October 26, 2020 at 3:30 PM >> *To: *"lilypond-user@gnu.org" >> *Subject: *Re: I ought to have a bar line here... >> >> >> >> Still stumped >> >> \version "2.20.0" >> >> { >> >> \alternative { >>{c c8. c16 c4 r } >>{c c8. c16 c4\mark "Fine" r >> \markup \vspace #1 >> >> \defineBarLine ".|:-|." #'("|." ".|:" #f) >> \markup \bold \typewriter "\".|:-|.\"" >> \bar ".|:-|." } >> } >> \break >> >> \repeat volta 2 { >> \bar ".|:"\mark "Trio" a4.\p r16 e a8. e16 gs8. e16 | a4. r16 e a8. e16 >> gs8. e16 | >> >> } >> >> has generated the following errors >> >> *Starting lilypond-windows.exe 2.20.0 >> [March-of-the-Russian-Imperial-Guard.ly]...* >> >> Processing `C:/Users/Mike >> Dean/AppData/Local/Temp/frescobaldi-ou5fxqul/tmpkydf0fg6/March-of-the-Russian-Imperial-Guard.ly' >> >> Parsing... >> >> C:/Users/Mike >> Dean/AppData/Local/Temp/frescobaldi-ou5fxqul/tmpkydf0fg6/March-of-the-Russian-Imperial-Guard.ly:27:1 >> : error: markup outside of text script or \lyricmode >> >> >> >> \markup \vspace #1 >> >> >> >> C:/Users/Mike >> Dean/AppData/Local/Temp/frescobaldi-ou5fxqul/tmpkydf0fg6/March-of-the-Russian-Imperial-Guard.ly:30:1 >> : error: markup outside of text script or \lyricmode >> >> >> >> \markup \bold \typewriter "\".|:-|.\"" >> >> >> >> Interpreting music...[8][16][24] >> >> C:/Users/Mike >> Dean/AppData/Local/Temp/frescobaldi-ou5fxqul/tmpkydf0fg6/March-of-the-Russian-Imperial-Guard.ly:36:55 >> : warning: barcheck failed at: 1/2 >> >> \bar ".|:"\mark "Trio" a4.\p r16 e a8. e16 gs8. e16 >> >> | a4. r16 e a8. e16 gs8. e16 | >> >> >> >> >> >> So maybe I'll have to draw it in the PDF, since I seem to be at the point >> that my understanding of LilyPond is enough to get me stuck in the weeds? >> >> >> >> (the first of Aaron's suggestions did not generate a bar line before the >> Triowould enclosing the piece in two separate pairs of braces be >> useful?) >> >> >> Mike Dean >> >> >> >> >> >> On Sun, Oct 25, 2020 at 7:19 AM Aaron Hill >> wrote: >> >> On 2020-10-25 6:25 am, Christian Masser wrote: >> > Aaron Hill schrieb am So., 25. Okt. 2020, >> > 04:38 >> > >> >> You have to use a special bar line type when it breaks across a line: >> >> >> >> >> >> \version "2.20.0" >> >> \paper { indent = 0 line-width = 3\cm ragged-right = ##f } >> >> >> >> \markup \bold \typewriter "\".|:-||\"" >> >> { R1 \bar ".|:-||" \break R1 } >> >> >> > >> > Out of pure interest: does anyone know why this seems to be "in the >> > wrong >> > order"? Why does the ". |:" of the second line come in front of the >> > "||" >> > which - viewed from a musical standpoint - should happen before? >> >> Near as I can tell, the naming convention is "primary-secondary". Only >> a bar line breaking across a line will show both styles. Otherwise, it >> is the style before the hyphen that is used. >> >> >> -- Aaron Hill >> >>
Re: I ought to have a bar line here...
Hi Carl: Is \include "english.ly" different from \language "english"? Part of my residing in the weeds is not being sure where \define command (and its relatives like \defineBarLine) ought to go...while the compilation didn't crash, the bar line construction was ignored in this case Mike Dean On Mon, Oct 26, 2020 at 2:56 PM Carl Sorensen wrote: > Try this: > > > > \version "2.20.00" > > \include "english.ly" > > \defineBarLine ".|:-|." #'("|." ".|:" "") > > > > { > > \repeat volta 2 { > > d2 d8 c d e | f4 f8. e16 d2 | e2 e8 d e f | g4 g8. f16 e2 | > > a4 a8. g16 f8. g16 a8. f16 | g4 g8. f16 e8. f16 g8. e16 | > > g4 a8. g16 f8. f16 e8. e16 | d4 g8. g16 g4 r8 g, | > > c4. g8 c4 d | e4. c8 e4 f | g e f d |} > > \alternative { > >{c c8. c16 c4 r } > >{c c8. c16 c4\mark "Fine" r \bar ".|:-|." } > > } > > > > \break > > \mark "Trio" a4.-\p r16 e a8. e16 gs8. e16 | a4. r16 e a8. e16 gs8. e16 | > > a4 c b e | d8. c16 b8. c16 b2 | > > a4. r16 e a8. e16 gs8. e16 | a4. r16 e a8. e16 gs8. e16 | > > a4 c b e | a,4 a8. a16 a4 r | > > } > > > > Carl > > > > > > *From: *lilypond-user gmail@gnu.org> on behalf of Mike Dean > *Date: *Monday, October 26, 2020 at 3:30 PM > *To: *"lilypond-user@gnu.org" > *Subject: *Re: I ought to have a bar line here... > > > > Still stumped > > \version "2.20.0" > > { > > \alternative { >{c c8. c16 c4 r } >{c c8. c16 c4\mark "Fine" r > \markup \vspace #1 > > \defineBarLine ".|:-|." #'("|." ".|:" #f) > \markup \bold \typewriter "\".|:-|.\"" > \bar ".|:-|." } > } > \break > > \repeat volta 2 { > \bar ".|:"\mark "Trio" a4.\p r16 e a8. e16 gs8. e16 | a4. r16 e a8. e16 > gs8. e16 | > > } > > has generated the following errors > > *Starting lilypond-windows.exe 2.20.0 > [March-of-the-Russian-Imperial-Guard.ly]...* > > Processing `C:/Users/Mike > Dean/AppData/Local/Temp/frescobaldi-ou5fxqul/tmpkydf0fg6/March-of-the-Russian-Imperial-Guard.ly' > > Parsing... > > C:/Users/Mike > Dean/AppData/Local/Temp/frescobaldi-ou5fxqul/tmpkydf0fg6/March-of-the-Russian-Imperial-Guard.ly:27:1 > : error: markup outside of text script or \lyricmode > > > > \markup \vspace #1 > > > > C:/Users/Mike > Dean/AppData/Local/Temp/frescobaldi-ou5fxqul/tmpkydf0fg6/March-of-the-Russian-Imperial-Guard.ly:30:1 > : error: markup outside of text script or \lyricmode > > > > \markup \bold \typewriter "\".|:-|.\"" > > > > Interpreting music...[8][16][24] > > C:/Users/Mike > Dean/AppData/Local/Temp/frescobaldi-ou5fxqul/tmpkydf0fg6/March-of-the-Russian-Imperial-Guard.ly:36:55 > : warning: barcheck failed at: 1/2 > > \bar ".|:"\mark "Trio" a4.\p r16 e a8. e16 gs8. e16 > > | a4. r16 e a8. e16 gs8. e16 | > > > > > > So maybe I'll have to draw it in the PDF, since I seem to be at the point > that my understanding of LilyPond is enough to get me stuck in the weeds? > > > > (the first of Aaron's suggestions did not generate a bar line before the > Triowould enclosing the piece in two separate pairs of braces be > useful?) > > > Mike Dean > > > > > > On Sun, Oct 25, 2020 at 7:19 AM Aaron Hill > wrote: > > On 2020-10-25 6:25 am, Christian Masser wrote: > > Aaron Hill schrieb am So., 25. Okt. 2020, > > 04:38 > > > >> You have to use a special bar line type when it breaks across a line: > >> > >> > >> \version "2.20.0" > >> \paper { indent = 0 line-width = 3\cm ragged-right = ##f } > >> > >> \markup \bold \typewriter "\".|:-||\"" > >> { R1 \bar ".|:-||" \break R1 } > >> > > > > Out of pure interest: does anyone know why this seems to be "in the > > wrong > > order"? Why does the ". |:" of the second line come in front of the > > "||" > > which - viewed from a musical standpoint - should happen before? > > Near as I can tell, the naming convention is "primary-secondary". Only > a bar line breaking across a line will show both styles. Otherwise, it > is the style before the hyphen that is used. > > > -- Aaron Hill > >
Re: I ought to have a bar line here...
Try this: \version "2.20.00" \include "english.ly" \defineBarLine ".|:-|." #'("|." ".|:" "") { \repeat volta 2 { d2 d8 c d e | f4 f8. e16 d2 | e2 e8 d e f | g4 g8. f16 e2 | a4 a8. g16 f8. g16 a8. f16 | g4 g8. f16 e8. f16 g8. e16 | g4 a8. g16 f8. f16 e8. e16 | d4 g8. g16 g4 r8 g, | c4. g8 c4 d | e4. c8 e4 f | g e f d |} \alternative { {c c8. c16 c4 r } {c c8. c16 c4\mark "Fine" r \bar ".|:-|." } } \break \mark "Trio" a4.-\p r16 e a8. e16 gs8. e16 | a4. r16 e a8. e16 gs8. e16 | a4 c b e | d8. c16 b8. c16 b2 | a4. r16 e a8. e16 gs8. e16 | a4. r16 e a8. e16 gs8. e16 | a4 c b e | a,4 a8. a16 a4 r | } Carl From: lilypond-user on behalf of Mike Dean Date: Monday, October 26, 2020 at 3:30 PM To: "lilypond-user@gnu.org" Subject: Re: I ought to have a bar line here... Still stumped \version "2.20.0" { \alternative { {c c8. c16 c4 r } {c c8. c16 c4\mark "Fine" r \markup \vspace #1 \defineBarLine ".|:-|." #'("|." ".|:" #f) \markup \bold \typewriter "\".|:-|.\"" \bar ".|:-|." } } \break \repeat volta 2 { \bar ".|:"\mark "Trio" a4.\p r16 e a8. e16 gs8. e16 | a4. r16 e a8. e16 gs8. e16 | } has generated the following errors Starting lilypond-windows.exe 2.20.0 [March-of-the-Russian-Imperial-Guard.ly]... Processing `C:/Users/Mike Dean/AppData/Local/Temp/frescobaldi-ou5fxqul/tmpkydf0fg6/March-of-the-Russian-Imperial-Guard.ly' Parsing... C:/Users/Mike Dean/AppData/Local/Temp/frescobaldi-ou5fxqul/tmpkydf0fg6/March-of-the-Russian-Imperial-Guard.ly:27:1<0>: error: markup outside of text script or \lyricmode \markup \vspace #1 C:/Users/Mike Dean/AppData/Local/Temp/frescobaldi-ou5fxqul/tmpkydf0fg6/March-of-the-Russian-Imperial-Guard.ly:30:1<1>: error: markup outside of text script or \lyricmode \markup \bold \typewriter "\".|:-|.\"" Interpreting music...[8][16][24] C:/Users/Mike Dean/AppData/Local/Temp/frescobaldi-ou5fxqul/tmpkydf0fg6/March-of-the-Russian-Imperial-Guard.ly:36:55<2>: warning: barcheck failed at: 1/2 \bar ".|:"\mark "Trio" a4.\p r16 e a8. e16 gs8. e16 | a4. r16 e a8. e16 gs8. e16 | So maybe I'll have to draw it in the PDF, since I seem to be at the point that my understanding of LilyPond is enough to get me stuck in the weeds? (the first of Aaron's suggestions did not generate a bar line before the Triowould enclosing the piece in two separate pairs of braces be useful?) Mike Dean On Sun, Oct 25, 2020 at 7:19 AM Aaron Hill mailto:lilyp...@hillvisions.com>> wrote: On 2020-10-25 6:25 am, Christian Masser wrote: > Aaron Hill mailto:lilyp...@hillvisions.com>> > schrieb am So., 25. Okt. 2020, > 04:38 > >> You have to use a special bar line type when it breaks across a line: >> >> >> \version "2.20.0" >> \paper { indent = 0 line-width = 3\cm ragged-right = ##f } >> >> \markup \bold \typewriter "\".|:-||\"" >> { R1 \bar ".|:-||" \break R1 } >> > > Out of pure interest: does anyone know why this seems to be "in the > wrong > order"? Why does the ". |:" of the second line come in front of the > "||" > which - viewed from a musical standpoint - should happen before? Near as I can tell, the naming convention is "primary-secondary". Only a bar line breaking across a line will show both styles. Otherwise, it is the style before the hyphen that is used. -- Aaron Hill
Re: I ought to have a bar line here...
Still stumped \version "2.20.0" { \alternative { {c c8. c16 c4 r } {c c8. c16 c4\mark "Fine" r \markup \vspace #1 \defineBarLine ".|:-|." #'("|." ".|:" #f) \markup \bold \typewriter "\".|:-|.\"" \bar ".|:-|." } } \break \repeat volta 2 { \bar ".|:"\mark "Trio" a4.\p r16 e a8. e16 gs8. e16 | a4. r16 e a8. e16 gs8. e16 | } has generated the following errors Starting lilypond-windows.exe 2.20.0 [March-of-the-Russian-Imperial-Guard.ly]... Processing `C:/Users/Mike Dean/AppData/Local/Temp/frescobaldi-ou5fxqul/tmpkydf0fg6/March-of-the-Russian-Imperial-Guard.ly' Parsing... C:/Users/Mike Dean/AppData/Local/Temp/frescobaldi-ou5fxqul/tmpkydf0fg6/March-of-the-Russian-Imperial-Guard.ly:27:1 <0>: error: markup outside of text script or \lyricmode \markup \vspace #1 C:/Users/Mike Dean/AppData/Local/Temp/frescobaldi-ou5fxqul/tmpkydf0fg6/March-of-the-Russian-Imperial-Guard.ly:30:1 <1>: error: markup outside of text script or \lyricmode \markup \bold \typewriter "\".|:-|.\"" Interpreting music...[8][16][24] C:/Users/Mike Dean/AppData/Local/Temp/frescobaldi-ou5fxqul/tmpkydf0fg6/March-of-the-Russian-Imperial-Guard.ly:36:55 <2>: warning: barcheck failed at: 1/2 \bar ".|:"\mark "Trio" a4.\p r16 e a8. e16 gs8. e16 | a4. r16 e a8. e16 gs8. e16 | So maybe I'll have to draw it in the PDF, since I seem to be at the point that my understanding of LilyPond is enough to get me stuck in the weeds? (the first of Aaron's suggestions did not generate a bar line before the Triowould enclosing the piece in two separate pairs of braces be useful?) Mike Dean On Sun, Oct 25, 2020 at 7:19 AM Aaron Hill wrote: > On 2020-10-25 6:25 am, Christian Masser wrote: > > Aaron Hill schrieb am So., 25. Okt. 2020, > > 04:38 > > > >> You have to use a special bar line type when it breaks across a line: > >> > >> > >> \version "2.20.0" > >> \paper { indent = 0 line-width = 3\cm ragged-right = ##f } > >> > >> \markup \bold \typewriter "\".|:-||\"" > >> { R1 \bar ".|:-||" \break R1 } > >> > > > > Out of pure interest: does anyone know why this seems to be "in the > > wrong > > order"? Why does the ". |:" of the second line come in front of the > > "||" > > which - viewed from a musical standpoint - should happen before? > > Near as I can tell, the naming convention is "primary-secondary". Only > a bar line breaking across a line will show both styles. Otherwise, it > is the style before the hyphen that is used. > > > -- Aaron Hill > >
Re: I ought to have a bar line here...
On 2020-10-25 6:25 am, Christian Masser wrote: Aaron Hill schrieb am So., 25. Okt. 2020, 04:38 You have to use a special bar line type when it breaks across a line: \version "2.20.0" \paper { indent = 0 line-width = 3\cm ragged-right = ##f } \markup \bold \typewriter "\".|:-||\"" { R1 \bar ".|:-||" \break R1 } Out of pure interest: does anyone know why this seems to be "in the wrong order"? Why does the ". |:" of the second line come in front of the "||" which - viewed from a musical standpoint - should happen before? Near as I can tell, the naming convention is "primary-secondary". Only a bar line breaking across a line will show both styles. Otherwise, it is the style before the hyphen that is used. -- Aaron Hill
Re: I ought to have a bar line here...
Aaron Hill schrieb am So., 25. Okt. 2020, 04:38 > You have to use a special bar line type when it breaks across a line: > > > \version "2.20.0" > \paper { indent = 0 line-width = 3\cm ragged-right = ##f } > > \markup \bold \typewriter "\".|:-||\"" > { R1 \bar ".|:-||" \break R1 } > Out of pure interest: does anyone know why this seems to be "in the wrong order"? Why does the ". |:" of the second line come in front of the "||" which - viewed from a musical standpoint - should happen before?
Re: I ought to have a bar line here...
On 2020-10-24 5:05 pm, Mike Dean wrote: ...between the end of the first section and the start of the Trio, but have stumped myself in properly coding it (I went to alternative endings to ensure that I had a repeat sign) (PDF and .ly file attached, beside the snippet below) [...] You have to use a special bar line type when it breaks across a line: \version "2.20.0" \paper { indent = 0 line-width = 3\cm ragged-right = ##f } \markup \bold \typewriter "\".|:-||\"" { R1 \bar ".|:-||" \break R1 } \markup \vspace #1 \defineBarLine ".|:-|." #'("|." ".|:" #f) \markup \bold \typewriter "\".|:-|.\"" { R1 \bar ".|:-|." \break R1 } As shown in the second example, sometimes you need to define your own custom type if LilyPond does not provide what you need already. -- Aaron Hill
Re: I ought to have a bar line here...
On Sat 24 Oct 2020 at 17:05:00 (-0700), Mike Dean wrote: > ...between the end of the first section and the start of the Trio, but have > stumped myself in properly coding it (I went to alternative endings to > ensure that I had a repeat sign) > (PDF and .ly file attached, beside the snippet below) > \bar ".|:"\mark "Trio" a4.\p r16 e a8. e16 gs8. e16 | a4. r16 e a8. e16 Change \bar ".|:" to \bar ":|.|:" Cheers, David.
RE: I ought to have a bar line here...
Mike, Look at the attachments and see if it is what you want. Note that the double bar under “Fine” is not there. Seems it conflicts with the “repeat sign” of the Trio. Mark From: lilypond-user [mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] On Behalf Of Mike Dean Sent: Saturday, October 24, 2020 7:22 PM To: lilypond-user@gnu.org Subject: Re: I ought to have a bar line here... Okay, I tried that, but the desire to start the trio on a new staff is not met: Hoping this wouldn't require a break-visibility command intervention. Mike Dean On Sat, Oct 24, 2020 at 5:51 PM Mark Stephen Mrotek mailto:carsonm...@ca.rr.com> > wrote: Mike, When I remove the “\break” the empty staff disappears. Mark From: lilypond-user [mailto:lilypond-user-bounces+carsonmark <mailto:lilypond-user-bounces%2Bcarsonmark> =ca.rr@gnu.org <mailto:ca.rr@gnu.org> ] On Behalf Of Mike Dean Sent: Saturday, October 24, 2020 5:05 PM To: lilypond-user@gnu.org <mailto:lilypond-user@gnu.org> Subject: I ought to have a bar line here... ...between the end of the first section and the start of the Trio, but have stumped myself in properly coding it (I went to alternative endings to ensure that I had a repeat sign) (PDF and .ly file attached, beside the snippet below) \version "2.20.00" \repeat volta 2 { d2 d8 c d e | f4 f8. e16 d2 | e2 e8 d e f | g4 g8. f16 e2 | a4 a8. g16 f8. g16 a8. f16 | g4 g8. f16 e8. f16 g8. e16 | g4 a8. g16 f8. f16 e8. e16 | d4 g8. g16 g4 r8 g, | c4. g8 c4 d | e4. c8 e4 f | g e f d |} \alternative { {c c8. c16 c4 r } {c c8. c16 c4\mark "Fine" r \bar "|." } } \break \repeat volta 2 { \bar ".|:"\mark "Trio" a4.\p r16 e a8. e16 gs8. e16 | a4. r16 e a8. e16 gs8. e16 | a4 c b e | d8. c16 b8. c16 b2 | a4. r16 e a8. e16 gs8. e16 | a4. r16 e a8. e16 gs8. e16 | a4 c b e | a,4 a8. a16 a4 r | } Mike Dean \version "2.20.00" \relative c'' { \repeat volta 2 { d2 d8 c d e | f4 f8. e16 d2 | e2 e8 d e f | g4 g8. f16 e2 | a4 a8. g16 f8. g16 a8. f16 | g4 g8. f16 e8. f16 g8. e16 | g4 a8. g16 f8. f16 e8. e16 | d4 g8. g16 g4 r8 g, | c4. g8 c4 d | e4. c8 e4 f | g e f d |} \alternative { {c c8. c16 c4 r } {c c8. c16 c4\mark "Fine" r }} \repeat volta 2 { \mark "Trio" a4.\p r16 e a8. e16 g8. e16 | a4. r16 e a8. e16 gs8. e16 | a4 c b e | d8. c16 b8. c16 b2 | a4. r16 e a8. e16 gs8. e16 | a4. r16 e a8. e16 gs8. e16 | a4 c b e | a,4 a8. a16 a4 r | } } Trio.pdf Description: Adobe PDF document
Re: I ought to have a bar line here...
Okay, I tried that, but the desire to start the trio on a new staff is not met: [image: image.png] Hoping this wouldn't require a break-visibility command intervention. Mike Dean On Sat, Oct 24, 2020 at 5:51 PM Mark Stephen Mrotek wrote: > Mike, > > > > When I remove the “\break” the empty staff disappears. > > > > Mark > > > > *From:* lilypond-user [mailto:lilypond-user-bounces+carsonmark= > ca.rr@gnu.org] *On Behalf Of *Mike Dean > *Sent:* Saturday, October 24, 2020 5:05 PM > *To:* lilypond-user@gnu.org > *Subject:* I ought to have a bar line here... > > > > ...between the end of the first section and the start of the Trio, but > have stumped myself in properly coding it (I went to alternative endings to > ensure that I had a repeat sign) > > (PDF and .ly file attached, beside the snippet below) > > \version "2.20.00" > > \repeat volta 2 { > d2 d8 c d e | f4 f8. e16 d2 | e2 e8 d e f | g4 g8. f16 e2 | > a4 a8. g16 f8. g16 a8. f16 | g4 g8. f16 e8. f16 g8. e16 | > g4 a8. g16 f8. f16 e8. e16 | d4 g8. g16 g4 r8 g, | > c4. g8 c4 d | e4. c8 e4 f | g e f d |} > \alternative { >{c c8. c16 c4 r } >{c c8. c16 c4\mark "Fine" r \bar "|." } > } > > \break > \repeat volta 2 { > \bar ".|:"\mark "Trio" a4.\p r16 e a8. e16 gs8. e16 | a4. r16 e a8. e16 > gs8. e16 | > a4 c b e | d8. c16 b8. c16 b2 | > a4. r16 e a8. e16 gs8. e16 | a4. r16 e a8. e16 gs8. e16 | > a4 c b e | a,4 a8. a16 a4 r | > } > > > Mike Dean >
RE: I ought to have a bar line here...
Mike, When I remove the “\break” the empty staff disappears. Mark From: lilypond-user [mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] On Behalf Of Mike Dean Sent: Saturday, October 24, 2020 5:05 PM To: lilypond-user@gnu.org Subject: I ought to have a bar line here... ...between the end of the first section and the start of the Trio, but have stumped myself in properly coding it (I went to alternative endings to ensure that I had a repeat sign) (PDF and .ly file attached, beside the snippet below) \version "2.20.00" \repeat volta 2 { d2 d8 c d e | f4 f8. e16 d2 | e2 e8 d e f | g4 g8. f16 e2 | a4 a8. g16 f8. g16 a8. f16 | g4 g8. f16 e8. f16 g8. e16 | g4 a8. g16 f8. f16 e8. e16 | d4 g8. g16 g4 r8 g, | c4. g8 c4 d | e4. c8 e4 f | g e f d |} \alternative { {c c8. c16 c4 r } {c c8. c16 c4\mark "Fine" r \bar "|." } } \break \repeat volta 2 { \bar ".|:"\mark "Trio" a4.\p r16 e a8. e16 gs8. e16 | a4. r16 e a8. e16 gs8. e16 | a4 c b e | d8. c16 b8. c16 b2 | a4. r16 e a8. e16 gs8. e16 | a4. r16 e a8. e16 gs8. e16 | a4 c b e | a,4 a8. a16 a4 r | } Mike Dean