Jump to content

Cow and ride bell example: Difference between revisions

From LilyPond wiki
No edit summary
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Two different bells, entered with 'cb' (cowbell) and 'rb' (ridebell).
Two different bells, entered with ‘cb’ (cow bell) and ‘rb’ (ride bell).
 
<lilypond version="2.24" full>
\paper { tagline = ##f }


<lilypond version="2.24">
#(define mydrums '((ridebell default #f  3)
#(define mydrums '((ridebell default #f  3)
                   (cowbell  default #f -2)))
                   (cowbell  default #f -2)))
Line 22: Line 20:


[[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:Snippet]]
[[Category:Included in the official documentation]]
[[Category:Snippet]]

Latest revision as of 10:19, 30 November 2025

Two different bells, entered with ‘cb’ (cow bell) and ‘rb’ (ride bell).

\version "2.24"

#(define mydrums '((ridebell default #f  3)
                   (cowbell  default #f -2)))

\new DrumStaff \with { instrumentName = #"Different Bells" }

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

  \time 2/4
  rb8 8 cb8 16 rb16-> ~ |
  16 8 16 cb8 8 |
}