%% Generated by lilypond-book
%% Options: [exampleindent=10.16\mm,indent=0\mm,line-width=160\mm,paper-height=845.047\pt,paper-width=597.508\pt,papersize='(cons (* 597.508 pt) (* 845.047 pt))]
\include "lilypond-book-preamble.ly"


% ****************************************************************
% Start cut-&-pastable-section
% ****************************************************************

#(ly:set-option 'eps-box-padding 3.000000)



\paper {
  #(set-paper-size '(cons (* 597.508 pt) (* 845.047 pt)))
  indent = 0\mm
  line-width = 160\mm
  % offset the left padding, also add 1mm as lilypond creates cropped
  % images with a little space on the right
  line-width = #(- line-width (* mm  3.000000) (* mm 1))
}

\layout {
  
}




% ****************************************************************
% ly snippet:
% ****************************************************************
\sourcefilename "snippets/high-and-low-woodblock-example.ly"
\sourcefileline 0
%% DO NOT EDIT this file manually; it was automatically
%% generated from the LilyPond Wiki
%% (https://wiki.lilypond.community).
%%
%% Make any changes in the Wiki itself, or in
%% `Documentation/snippets/new/`, then run
%% `scripts/auxiliar/makelsr.pl`.
%%
%% This file is in the public domain.

\version "2.24.0"

\header {
%% Translation of GIT committish: 1abe87de51b9b00a391da1be4cf4b5ebe4021ca9
  texidocfr = "
Deux woodblocks se saisissent « wbh » (woodblock haut) et « wbl »
(woodblock bas). La hauteur des barres de mesure a été adaptée par une
commande @code{\\override} afin qu'elles ne soient pas trop courtes. La
position des deux lignes de la portée doit aussi être explicitement
définie.
"

  doctitlefr = "Exemple de woodblocks haut et bas"

%% Translation of GIT committish: aa4f229bc77265d2deaa36055c5845cd682823fe
  texidoces = "
Dos cajas chinas, escritas como @q{wbh} (@emph{high woodblock}) y
@q{wbl} (@emph{low woodblock}).  La longitud de la línea divisoria
se ha alterado con una instrucción @code{\\override} para que no
sea demasiado corta.  Las posiciones de las dos líneas de la pauta
se tienen que definir explícitamente también.
"

  doctitlees = "Ejemplo de cajas chinas grave y aguda"

  categories = "Percussion, Rhythms, Specific notation"

  texidoc = "
Two Woodblocks, entered with @q{wbh} (high woodblock) and @q{wbl} (low
woodblock). The length of the bar line has been altered with an
@code{\\override} command, otherwise it would be too short. The
positions of the two staff lines also have to be explicitly defined.
"

  doctitle = "High and low woodblock example"
} % begin verbatim


% These lines define the position of the woodblocks in the stave;
% if you like, you can change it or you can use special note heads
% for the woodblocks.
#(define mydrums '((hiwoodblock default #f  3)
                   (lowoodblock default #f -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.0 . 1.5)
  % small correction for the clef:
  \set DrumStaff.clefPosition = 0.5
}

\new DrumStaff {
  % with this you load your new drum style table
  \set DrumStaff.drumStyleTable = #(alist->hash-table mydrums)

  \woodstaff

  \drummode {
    \time 2/4
    wbh8 16 16 8-> 8 |
    wbl8 16 16-> ~ 16 16 r8 |
  }
}



% ****************************************************************
% end ly snippet
% ****************************************************************
