Richard Shann <rich...@rshann.plus.com> writes:

> The documentation says that staff groups can be nested, but many don't
> appear to work, e.g. this
>
> \version "2.18.0"
> \score {
>         <<
>              \new GrandStaff <<
>                                 \new Staff { s1*4/4 }
>                                  \new ChoirStaff <<
>                                                     \new Staff
> { s1*4/4 }
>                                                     \new Staff
> { s1*4/4 }
>                                                     \new Staff
> { s1*4/4 }
>                                                 >>
>                              >>
>         >>
>     }
>
> has no GrandStaff. 
> Is something missing at
> http://www.lilypond.org/doc/v2.18/Documentation/notation/displaying-staves
> and can anyone explain the rules (I am trying to write a staff braces
> checker ...)

#(for-each
  (lambda (cd)
   (format #t "~a can accept: ~{~a~^, ~}\n" (car cd)
    (or (ly:context-def-lookup (cdr cd) 'accepts))))
  (ly:output-find-context-def #{ \layout { } #}))

-- 
David Kastrup

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to