lilypond-user
[Top][All Lists]
Advanced

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

Re: I ought to have a bar line here...


From: Mike Dean
Subject: Re: I ought to have a bar line here...
Date: Mon, 26 Oct 2020 14:28:25 -0700

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 Trio....would enclosing the piece in two separate pairs of braces be useful?)

Mike Dean


On Sun, Oct 25, 2020 at 7:19 AM Aaron Hill <lilypond@hillvisions.com> wrote:
On 2020-10-25 6:25 am, Christian Masser wrote:
> Aaron Hill <lilypond@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


reply via email to

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