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: Tue, 15 Jul 2014 15:14:26 +0100

Well, I'm not sure I follow the distinction between defined bar-types
and not, this code

\version "2.18.0"
\defineBarLine ":" #'(":" ":" ":")
\defineBarLine "|" #'(":" ":" ":")
\score { 
 
    \new PianoStaff << 
        \new Staff = "RH"  << 
         \new Voice  { 
         c''  c'' c'' c'' c'' c''  }               
        >>
        \new Staff = "LH"  << 
         \new Voice  { 
          c''  c'' c'' c'' c'' c''  } 
        >>
    >>
}

gives no warning but prints the double dots above instead of below the
top staff.
But perhaps that is a separate bug.
In any case, I seem to have a workable method for creating the bar types
needed for chord charts. Attached is an example of the sort of output.
The code to generate this is now in Denemo's git and will be in the
1.1.8 release.

Thanks to all who replied,

Richard





On Mon, 2014-07-14 at 18:14 +0200, 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))
> 
> 
> Cheers,
>   Harm

Attachment: ChordChartSample.png
Description: PNG image


reply via email to

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