2010/5/1 <lilyp...@bernardhulsman.nl>:

> Hello Xavier,
>
> Thanks. You replied on my original question with :
>
> [...]
>
> Done so. It could compile without errors but the PianoStaff is not
> visible.

Hi,

I must confess I hadn't tried the proposed solution before sending the
e-mail.

I just tried it now and it works (PianoStaff is visible).
Which version do you use?  I'm in 2.13.18.

The only "mistake" I still see is that you didn't put << >>
around the staves in StaffGroup.

You should also add:

  \context {
    \PianoStaff
    \accepts TwoLineStaff
  }
  \context {
    \StaffGroup
    \accepts DjembeStaff
    \accepts TwoLineStaff
  }

within \layout .

In conclusion, please try this:

\score {
  \new StaffGroup <<
    \tempo 4=100
    \new PianoStaff <<
      \new TwoLineStaff \new Voice \DunDunVoice
      \new TwoLineStaff \new Voice \SangBangVoice
    >>
    \new DjembeStaff \new Voice \DjembeIVoice
    \new DjembeStaff \new Voice \DjembeIIVoice
    \new DjembeStaff \new Voice \DjembeIIIVoice
  >>

  \layout {
    \context {
      \Staff
      \name DjembeStaff
      \alias Staff
      clefGlyph = #"clefs.percussion"
      clefPosition = #0
      \override TimeSignature #'style = #'numbered
      \override StaffSymbol #'line-count = #3
    }
    \context {
      \Staff
      \name TwoLineStaff
      \alias Staff
      clefGlyph = #"clefs.percussion"
      clefPosition = #0
      \override TimeSignature #'style = #'numbered
      \override StaffSymbol #'line-count = #2
    }
    \context {
      \PianoStaff
      \accepts TwoLineStaff
    }
    \context {
      \StaffGroup
      \accepts DjembeStaff
      \accepts TwoLineStaff
    }
    \context {
      \Score
      \accepts DjembeStaff
      \accepts TwoLineStaff
    }
  }
  % \midi {}
}


Cheers,
Xavier

--
Xavier Scheuer <x.sche...@gmail.com>


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

Reply via email to