1
0
Fork 0
mirror of https://github.com/kastdeur/lilydrum.git synced 2024-12-22 09:13:33 +01:00

Add definitions for optional Flams

This commit is contained in:
Eric Teunis de Boone 2020-07-05 19:53:10 +02:00
parent f8d879f4cc
commit 55c77789f6

View file

@ -1,6 +1,7 @@
% ================================================= %
% Flams, Drags & the sort %
% ================================================= %
drumgrace = #(define-music-function (parser location notes ) ( ly:music? ) #{
% Set settings
\stemUp
@ -25,13 +26,19 @@ flamg = \drummode { \drumgrace { d8 } } % Flam left
flamddr = \drummode { \drumgrace { g8\dr } } % Flam right with start repeat
flamgdr = \drummode { \drumgrace { d8\dr } } % Flam left with start repeat
% Optional Flams
optflamd = \drummode { \drumgrace { \parenthesize g8 } } % Optional Flam right
optflamg = \drummode { \drumgrace { \parenthesize d8 } } % Optional Flam left
optflamddr = \drummode { \drumgrace { \parenthesize g8\dr } } % Optional Flam right with start repeat
optflamgdr = \drummode { \drumgrace { \parenthesize d8\dr } } % Optional Flam left with start repeat
% Drags
dragd = \drummode { \drumgrace { g16[ g] } } % Drag right
dragg = \drummode { \drumgrace { d16[ d] } } % Drag left
dragddr = \drummode { \drumgrace { g16[\dr g] } } % Drag right with start repeat
draggdr = \drummode { \drumgrace { d16[\dr d] } } % Drag left with start repeat
% open drags
% Open Drags
odragd = \drummode { \drumgrace { << { g16[ g] } { s16 s32^\markup { \musicglyph #"scripts.open" } } >> } } % Open Drag right
odragg = \drummode { \drumgrace { << { d16[ d] } { s16 s32^\markup { \musicglyph #"scripts.open" } } >> } } % Open Drag left
odragddr = \drummode { \drumgrace { << { d16[\dr d] } { s16 s32^\markup { \musicglyph #"scripts.open" } } >> } } % Open Drag right with start repeat
@ -76,10 +83,15 @@ else it will prepend @var{right}"
)
)
)
% Flam
flam = #(autohandFunc flamg flamd)
flamdr = #(autohandFunc flamgdr flamddr )
% Optional Flam
optflam = #(autohandFunc optflamg optflamd)
optflamdr = #(autohandFunc optflamgdr optflamddr )
% Drag
drag = #(autohandFunc dragg dragd )
dragdr = #(autohandFunc draggdr dragddr )