Dear LilyPond users,

I have searched the LilyPond documentation, lilypond-user mailing list 
archives and the LilyPond snippet repository---all without success...

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"

          \description
            "Just like @code{ChoirStaff} but with a brace (SystemStartBrace)
             instead of a bracket (SystemStartBraclet) at the start of
             each system."

          \consists "System_start_delimiter_engraver"
          systemStartDelimiter = #'SystemStartBrace
      }
  }

  \midi {
      \context {
          \type "Performer_group"
          \name "BraceStaff"
          \alias "ChoirStaff"
      }
  }

When compiling a file with these lines, LilyPond 2.10.33 does not complain 
about the definitions, but it DOES complain that it cannot find them:

  warning: can't find or create new `BraceStaff'

I'm attaching a sample LilyPond document to illustrate this problem.  Any 
help is appreciated, as this little problem has already taken rather a lot 
of hours of my time... :-)

Yours truly,

John Zaitseff

-- 
John Zaitseff                    ,--_|\    The ZAP Group
Phone:  +61 2 9643 7737         /      \   Sydney, Australia
E-mail: [EMAIL PROTECTED]   \_,--._*   http://www.zap.org.au/
                                      v
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                                                       %
%                   How Deep the Father's Love For Us                   %
%                                                                       %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% $Id: empty.ly 91 2007-08-24 11:59:14Z john $


\version "2.10.33"                      % LilyPond language version

global =
    {
        \key e \major
        \time 4/4

        \autoBeamOff
    }

mainChords =
    \chordmode {
      e1 | fis1:m |
    }

upperPianoNotes =
    \relative c'' {
      e1 | fis1 |
    }

upperPianoAltNotes =
    \relative c'' {
      e,2 dis | fis1 |
    }

lowerPianoNotes =
    \relative c {
      e1 | fis1 |
    }


% Generate the actual music score

\layout {
    \context {
        \type "Engraver_group"
        \name "BraceStaff"
        \alias "ChoirStaff"

        \description
            "Just like @code{ChoirStaff} but with a brace (SystemStartBrace)
             instead of a bracket (SystemStartBraclet) at the start of
             each system."

        \consists "System_start_delimiter_engraver"
        systemStartDelimiter = #'SystemStartBrace
    }
}

\midi {
    \context {
        \type "Performer_group"
        \name "BraceStaff"
        \alias "ChoirStaff"
    }
}

\score {
    \new BraceStaff <<
%@@@    \new ChoirStaff \with { systemStartDelimiter = #'SystemStartBrace } <<

        \new ChordNames = "chords" <<
            { \global     }
            { \mainChords }
        >>

        \new Staff = "upper" <<
            \clef "treble"
            \new Voice = "upperPiano" <<
                { \voiceOne \global             }
                { \voiceOne \upperPianoNotes    }
            >>
            \new Voice = "upperPianoAlt" <<
                { \voiceTwo \global             }
                { \voiceTwo \upperPianoAltNotes }
            >>
        >>

        \new Staff = "lower" <<
            \clef "bass"
            \new Voice = "lowerPiano" <<
                { \oneVoice \global             }
                { \oneVoice \lowerPianoNotes    }
            >>
        >>
    >>

    \layout {
    }

    \midi {
    }
}
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to