lilypond-user
[Top][All Lists]
Advanced

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

Re: Switching to drummode and back


From: Aaron Hill
Subject: Re: Switching to drummode and back
Date: Tue, 19 Jun 2018 10:09:22 -0700
User-agent: Roundcube Webmail/1.3.6

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



reply via email to

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