Hi Aaron,

\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 \=.

I think the naming is a stroke of genius :-). But perhaps surprisingly, David Kastrup's \etc shorthand is even robust enough to allow for:

\version "2.22.0"

"\\@" = \tweak staff-position \etc

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

Lukas


Reply via email to