lilypond-user
[Top][All Lists]
Advanced

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

Re: Barline at beginning of lines of music.


From: Richard Shann
Subject: Re: Barline at beginning of lines of music.
Date: Sun, 13 Jul 2014 17:45:22 +0100

On Sat, 2014-07-12 at 13:15 +0100, Richard Shann wrote:
> I think I have it now:
> 
> http://www.lilypond.org/doc/v2.18/Documentation/notation/bars#index-bar-lines
> 
> "This and other special bar lines may be inserted manually at any point.
> When they coincide with the end of a measure they replace the simple bar
> line which would have been inserted there automatically. When they do
> not coincide with the end of a measure the specified bar line is
> inserted at that point in the printed output. "
> 
> would perhaps be better explained as:
> 
> "This and other special bar lines may be inserted manually at any point.
> Each special barline prescribes *three* things - what to show if the
> barline occurs at the beginning of a line, what to show when it
> coincides with the end of a line and what to show when it comes
> elsewhere (ref: definBarline). When they coincide with the end of a
> measure they replace the simple bar line which would have been inserted
> there automatically. When they do not coincide with the end of a measure
> the specified bar line is inserted at that point in the printed output,
> according to its position on the line. If two \bar commands come one
> after the other, the first is ignored."
> 
> I was getting stuck by imagining that \bar literally inserted a barline,
> even though I had realized that it did something "smarter".

This example fails to follow the description above:

\version "2.18.0"
\defineBarLine "]" #'(":||" "||" "||")

{
    c2 \bar "]" c2 \bar "]"
    \break
    \bar "]"
    d
}

This I read as saying that \bar "]" should show as a double bar when
mid-line (my interpretation of the third element of the list, called
"span" in the documentation. But it is typesetting as a horned solid
barline. 

One of the things not stated in the 2.18 docs is what strings are
allowed as the first argument to \defineBarLine. The examples all show
strings consisting of already defined (?) barline types with optionally
extra stuff separated by a hyphen. Except, perhaps that "]" used without
providing a \defineBarline for it doesn't typeset anything.

I'm now thoroughly confused :(

Richard



> 
> Richard
> 
> 
> On Sat, 2014-07-12 at 00:38 +0200, Thomas Morley wrote:
> > 2014-07-11 21:14 GMT+02:00 Richard Shann <address@hidden>:
> > > On Fri, 2014-07-11 at 18:11 +0100, James wrote:
> > >> On 11/07/14 18:00, Richard Shann wrote:
> > >> > It is somewhat embarrassing to reply to one's own question but:
> > >> >
> > >> > \defineBarLine "|" #'("|" "|" "|")
> > >> >
> > >> > does the trick.
> > >> >
> > >> > Richard
> > >> So do we need to improve the documentation?
> > >>
> > >> If so, what do you suggest?
> > >
> > > Well, clearly
> > >
> > > "This and other special bar lines may be inserted manually at any point
> > > where they make good sense in terms of good music typesetting practice."
> > >
> > > would be an truer.
> > > Or did you mean, should that override be documented? I can't answer that
> > > because I don't know if it is a stable feature - I just guessed. In fact
> > > I have further problems of a similar nature. The chord chart requires
> > > double bars to be printed despite a start-repeat bar following on the
> > > next line - even writing
> > >
> > > \defineBarLine "||" #'("||" "||" "||")
> > >
> > > does not cause the double bar to appear at the line end. There is surely
> > > a lack of detail about what the list elements (end begin span) actually
> > > mean.
> > >
> > > Richard
> > 
> > Well, the following works for me:
> > 
> > \defineBarLine "||" #'("||" "||" "||")
> > 
> > {
> >     c1
> >     \break
> >     \bar "||"
> >     d
> > }
> > 
> > Could you provide a tiny example?
> > 
> > Cheers,
> >   Harm
> 
> 
> 
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user





reply via email to

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