lilypond-user
[Top][All Lists]
Advanced

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

Percussion Snippet


From: Martin Bergande
Subject: Percussion Snippet
Date: Thu, 07 Feb 2013 01:10:19 +0100

Hallo,

is there a standard solution to improve the following snippet from
the docs?

% cut & pasted from LilyPond — Notation Reference for version 2.14.2

#(define mydrums '((hiwoodblock default #t  3)
                   (lowoodblock default #t -2)))

woodstaff = {
  % This defines a staff with only two lines.
  % It also defines the positions of the two lines.
  \override Staff.StaffSymbol #'line-positions = #'(-2 3)

  % This is necessary; if not entered, the barline would be too short!
  \override Staff.BarLine #'bar-extent = #'(-1.5 . 1.5)
}

\new DrumStaff {
  \set DrumStaff.drumStyleTable = #(alist->hash-table mydrums)

  % with this you load your new drum style table
  \woodstaff

  \drummode {
    \time 2/4
    wbl8 wbl16 wbl wbh8-> wbl |
    wbl8 wbl16 wbh-> ~ wbh wbl16 r8 |
  }
}

(http://lilypond.org/doc/v2.14/Documentation/13/lily-66415f8b.ly)

Martin

Attachment: lily-ce79488a.png
Description: PNG image


reply via email to

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