lilypond-user
[Top][All Lists]
Advanced

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

Re: change number of lines per staff


From: Michael Watts
Subject: Re: change number of lines per staff
Date: Tue, 01 Apr 2008 16:22:15 +1000
User-agent: Thunderbird 2.0.0.0 (X11/20070326)

>Am I able to change the number of lines in a [Drum] staff from 5 -> 1?

Lily has built-in support for DrumStaves with one, two or five lines -- see the manual.

In your case, it sounds lie you're after something like drumStyleTable = #percussion-style, like this:

\version "2.10.25"

up = \drummode { cb4 \times 2/3 { sn8 s sn } s4 sn4 | r8 sn8 cb4-. tri8-> r8 r4 \bar "||" }

down = \drummode { s4 \times 2/3 { s8 sn s } sn4 s4 | r4 r4 tri8-> r8 r4 \bar "||" }

\score {
\new DrumStaff \with { drumStyleTable = #percussion-style
     \override StaffSymbol #'line-count = #1
\override BarLine #'bar-size = #4 % need to lengthen bar lines, or they disappear on single line DrumStaff
     }
  <<
     \new DrumVoice { \voiceOne \up }
     \new DrumVoice { \voiceTwo \down }
  >>

  \layout { ragged-right = ##t }

}

HTH.





reply via email to

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