On 2018-06-19 06:41, foxfanfare wrote:
for illustration, this works but I wonder if it is the "easiest" way to do
it:

\new Staff \with {
   \accepts DrumStaff
} {
  \override Staff.StaffSymbol.line-count = #1
  \clef percussion
  \drums {
    hh8 8 8 8 8 8 8 8 }

  \stopStaff
  \new Voice {
    \override Staff.StaffSymbol.line-count = #5
    \startStaff
    \clef bass
    \key bes \major
    c4 d e f g
    }
}

To indicate a single backing rhythm between melodic phrases, I would just use a CueVoice and slash notes:

%%%%
  \version "2.19.81"
  melody = { s2. s8 e'16 f' | g'8 16 16~ 16 8 16~ 4 s4 }
  rhythms = { b'8. 16 4 r4 16 16 s8 | s2. 16 8. }
  \new Staff <<
    \new Voice \melody
    \new CueVoice
      \with { \override NoteHead.style = #'slash }
      \rhythms
  >>
%%%%

This might be "easier" than switching back and forth between staff types and clefs, providing you don't need the expressiveness of an actual DrumStaff.

-- Aaron Hill

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

Reply via email to