lilypond-user
[Top][All Lists]
Advanced

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

Re: Explicit placement of rests in a percussion staff


From: Aaron Hill
Subject: Re: Explicit placement of rests in a percussion staff
Date: Sat, 27 Feb 2021 02:31:06 -0800
User-agent: Roundcube Webmail/1.4.9

On 2021-02-27 1:22 am, Thomas Morley wrote:
I'd use an override for 'staff-position:
\once \override Rest.staff-position = -4
looks ok here.

\tweak form is a little shorter, although you could bake this into a function if you needed to use this a lot:

%%%%
\version "2.22.0"

"\\@" =
#(define-music-function
  (staff-position music)
  (integer? ly:music?)
  #{ \tweak staff-position #staff-position #music #})

\new DrumStaff \drummode { bd4 sn \@4 r4 r8 \@-4 r }
%%%%

Not sure if \@ is a good name for this, but it is conveniently short like \=.


-- Aaron Hill

Attachment: drummode-rest.cropped.png
Description: PNG image


reply via email to

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