1
0
Fork 0
mirror of https://github.com/kastdeur/lilydrum.git synced 2024-12-23 01:33:32 +01:00
lilydrum/lib/special_sticking.ily

34 lines
1.1 KiB
Text
Raw Normal View History

2020-07-05 19:49:12 +02:00
% ================================================= %
% Side Sticking (modifies note, or adds mark) %
% ================================================= %
% Part of lilydrum
2020-07-05 19:49:12 +02:00
backstick = #(define-music-function (parser location notes) (ly:music?)
#{
\temporary \override Voice.NoteHead.style = #'triangle
\temporary \override Voice.NoteHead.font-size = #1.2
#notes
\revert Voice.NoteHead.font-size
\revert Voice.NoteHead.style
#})
crossstick = #(define-music-function (parser location notes) (ly:music?)
#{
\temporary \override Voice.NoteHead.style = #'xcircle
\temporary \override Voice.NoteHead.font-size = #1.2
#notes
\revert Voice.NoteHead.font-size
\revert Voice.NoteHead.style
#})
rimshot = #(define-music-function (parser location notes) (ly:music?)
#{
\temporary \override Voice.NoteHead.font-size = #1.2
\temporary \override Voice.NoteHead.stencil = #ly:text-interface::print
\temporary \override Voice.NoteHead.text = \markup { \musicglyph #"scripts.halfopen" }
#notes
\revert Voice.NoteHead.stencil
\revert Voice.NoteHead.text
\revert Voice.NoteHead.font-size
#})