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: James
Subject: Re: Barline at beginning of lines of music.
Date: Mon, 14 Jul 2014 19:21:31 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

On 14/07/14 17:14, Thomas Morley wrote:
2014-07-14 17:11 GMT+02:00 Richard Shann <address@hidden>:

[...] I can write, for example

\version "2.18.0"
A = \bar "||-A"
\defineBarLine "||-A" #'(":|||" "]||:" "||")
  {     \A  a'4 a' a' a' \A
         a'4 a' a' a' \A }

this defines a customised version of the double bar line which does not
affect the standard one, but prints out differently at the beginning and
end of lines.
Though, your definition for "||-A" uses two _not_ defined bar-types:
":|||" and "]||:"
You'll get warnings if you try to use "||-A" in a StaffGroup and a
SpanBar isn't printed.

To avoid this, define all newly introduced BarLines as well.

\version "2.18.0"

\defineBarLine "|||" #'("|||" "|||" "|||")
\defineBarLine ":|||" #'(":|||" "|||" " |||")
\defineBarLine "]||:" #'(":|||" "]||:" " ||")
\defineBarLine "||-A" #'(":|||" "]||:" "||")

A = \bar "||-A"

m =
   \new Staff {
     \A a'4 a' a' a' \A
     \break
     a'4 a' a' a' \A
   }

\new StaffGroup
   <<
     \m
     \m
   >>

Please refer to the NR about the already predefined bar-types or use
the following code in a .ly-file to display them in Terminal:

#(use-modules (ice-9 pretty-print))
#(pretty-print (map car (@@ (lily) bar-glyph-alist)))

or the complete list with all settings:

#(use-modules (ice-9 pretty-print))
#(pretty-print (@@ (lily) bar-glyph-alist))
Well I'm still no clearer from this thread if we do or do not need a doc improvement.

If so could someone create a tracker issue or give me something I can use (or tell me the doc is OK and nothing needs improving).

Thanks

James



reply via email to

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