lilypond-user
[Top][All Lists]
Advanced

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

Re: Problems defining a BraceStaff


From: John Zaitseff
Subject: Re: Problems defining a BraceStaff
Date: Fri, 29 Feb 2008 20:07:09 +1100
User-agent: KMail/1.9.6 (enterprise 0.20070907.709405)

Dear LilyPonders,

Mats wrote:

> > The question is: how do I define a BraceStaff that is exactly like a
> > ChoirStaff, except that braces are used instead of brackets at the
> > start of systems?  In particular, I tried to define the following in my
> > stylesheet (which gets included into all my documents):
> >
> >   \layout {
> >       \context {
> >           \type "Engraver_group"
> >           \name "BraceStaff"
> >           \alias "ChoirStaff"
> >           % [...]
> >           \consists "System_start_delimiter_engraver"
> >           systemStartDelimiter = #'SystemStartBrace
> >       }
> >   }
>
> It seems that you forgot to include your new context into the context
> hieararchy, see section "Defining new contexts" in the manual for
> instructions on how to do that using the \accepts keyword.

Oops!  I've redefined it as:

  \layout {
      \context {
          \name "BraceStaff"
          \type "Engraver_group"
          \alias "ChoirStaff"
          \consists "System_start_delimiter_engraver"
          systemStartDelimiter = #'SystemStartBrace
      }

      \context {
          \Score
          \accepts "BraceStaff"
      }
  }

LilyPond now finds the definition correctly, but it still doesn't use 
SystemStartBrace.  My main \score block is of the form:

  \score {
      \new BraceStaff <<

        \new Staff = "upper" <<
            % [...]
        >>
        \new Staff = "lower" <<
            % [...]
        >>
      >>

      \layout {
      }
  }

If I replace "BraceStaff" with "ChoirStaff \with { systemStartDelimiter = 
#'SystemStartBrace }", it all just works.  And putting the line containing
"\alias" to end of the context doesn't help.

What am I doing wrong?  I can't help but think it must be fairly simple...  
Thanks in advance!

Yours truly,

John Zaitseff

-- 
John Zaitseff                    ,--_|\    The ZAP Group
Phone:  +61 2 9643 7737         /      \   Sydney, Australia
E-mail: address@hidden   \_,--._*   http://www.zap.org.au/
                                      v




reply via email to

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