X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Flsr%2Fadding-drum-parts.ly;h=15ddb7960840d733c98ff78105820b9bcb2218fa;hb=87bcfd325a61d9efb40f44fa7ac5a48e93d7b4af;hp=baec437429ddebf8eef70d0f09ac6de371721b31;hpb=61982f69784ce0fe80c719b0bab53d78c24779ce;p=lilypond.git diff --git a/input/lsr/adding-drum-parts.ly b/input/lsr/adding-drum-parts.ly index baec437429..15ddb79608 100644 --- a/input/lsr/adding-drum-parts.ly +++ b/input/lsr/adding-drum-parts.ly @@ -1,46 +1,46 @@ -%% Do not edit this file; it is auto-generated from LSR! -%% Tags: rhythms, percussion -\version "2.11.35" +%% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it +%% This file is in the public domain. +\version "2.11.48" -\header { texidoc = " -LilyPond makes drums input quite easy, with powerful pre-configured -tools such as the \\drummode function and the DrumStaff context: drums -are placed to their own staff positions (with a special clef symbol) -and have note heads according to the drum. You can easily attach an -extra symbol to the drum, and restrict the number of lines. -" } +\header { + lsrtags = "rhythms, percussion" -drh = \drummode { cymc4.^"crash" hhc16^"h.h." hh \repeat "unfold" 5 {hhc8 hho hhc8 hh16 hh} hhc4 r4 r2 } -drl = \drummode {\repeat "unfold" 3 {bd4 sn8 bd bd4 << bd ss >> } bd8 tommh tommh bd toml toml bd tomfh16 tomfh } -timb = \drummode { \repeat "unfold" 2 {timh4 ssh timl8 ssh r timh r4 ssh8 timl r4 cb8 cb} } + texidoc = " +Using the powerful pre-configured tools such as the @code{\\drummode} +function and the @code{DrumStaff} context, inputting drum parts is +quite easy: drums are placed at their own staff positions (with a +special clef symbol) and have note heads according to the drum. +Attaching an extra symbol to the drum or restricting the number of +lines is possible. + +" + doctitle = "Adding drum parts" +} % begin verbatim +drh = \drummode { cymc4.^"crash" hhc16^"h.h." hh hhc8 hho hhc8 hh16 hh hhc4 r4 r2 } +drl = \drummode { bd4 sn8 bd bd4 << bd ss >> bd8 tommh tommh bd toml toml bd tomfh16 tomfh } +timb = \drummode { timh4 ssh timl8 ssh r timh r4 ssh8 timl r4 cb8 cb } \score { - \repeat "volta" 2 { - << - \new DrumStaff \with { - drumStyleTable = #timbales-style - \override StaffSymbol #'line-count = #2 - \override BarLine #'bar-size = #2 - } << - \set Staff.instrumentName = "timbales" - \timb - >> - \new DrumStaff << - \set Staff.instrumentName = "drums" - \new DrumVoice {\stemUp \drh } - \new DrumVoice {\stemDown \drl } - >> + << + \new DrumStaff \with { + drumStyleTable = #timbales-style + \override StaffSymbol #'line-count = #2 + \override BarLine #'bar-size = #2 + } << + \set Staff.instrumentName = #"timbales" + \timb >> - } - \layout {} - + \new DrumStaff << + \set Staff.instrumentName = #"drums" + \new DrumVoice { \stemUp \drh } + \new DrumVoice { \stemDown \drl } + >> + >> + \layout { } \midi { \context { \Score tempoWholesPerMinute = #(ly:make-moment 120 4) - } } - - + } } -