Jump to content

Tambourine example: Difference between revisions

From LilyPond wiki
m New category
Tags: Mobile edit Mobile web edit
mNo edit summary
 
Line 1: Line 1:
A tambourine example, entered 'tamb'
A tambourine example, entered with ‘tamb’.
 
<lilypond version="2.24" full>
\paper { tagline = ##f }


<lilypond version="2.24">
#(define mydrums '((tambourine default #f 0)))
#(define mydrums '((tambourine default #f 0)))


Line 16: Line 14:
   tamb8. 16 8 8 8 8 |
   tamb8. 16 8 8 8 8 |
   tamb4. 8 8 8 |
   tamb4. 8 8 8 |
   % the trick with the scaled duration and the shorter rest
   % The trick with the scaled duration and the shorter rest
   % is neccessary for the correct ending of the trill-span!
   % is neccessary for the correct ending of the trill-span!
   tamb2.*5/6 \startTrillSpan s8 \stopTrillSpan |
   tamb2.*5/6 \startTrillSpan s8 \stopTrillSpan |
Line 23: Line 21:


[[Category:Percussion]]
[[Category:Percussion]]
[[Category:Preparing parts]]
[[Category:Really simple]]
[[Category:Rhythms]]
[[Category:Rhythms]]
[[Category:Specific notation]]
[[Category:Specific notation]]
[[Category:Included in the official documentation]]
[[Category:Included in the official documentation]]
[[Category:Snippet]]
[[Category:Snippet]]

Latest revision as of 19:19, 30 November 2025

A tambourine example, entered with ‘tamb’.

\version "2.24"

#(define mydrums '((tambourine default #f 0)))

\new DrumStaff \with { instrumentName = #"Tambourine" }

\drummode {
  \set DrumStaff.drumStyleTable = #(alist->hash-table mydrums)
  \override Staff.StaffSymbol.line-positions = #'( 0 )
  \override Staff.BarLine.bar-extent = #'(-1.5 . 1.5)

  \time 6/8
  tamb8. 16 8 8 8 8 |
  tamb4. 8 8 8 |
  % The trick with the scaled duration and the shorter rest
  % is neccessary for the correct ending of the trill-span!
  tamb2.*5/6 \startTrillSpan s8 \stopTrillSpan |
}