lilypond-user
[Top][All Lists]
Advanced

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

Re: Drum writing...is there a way to save and recall custom commands?


From: Jonathan Kulp
Subject: Re: Drum writing...is there a way to save and recall custom commands?
Date: Tue, 17 Feb 2009 10:42:05 -0600
User-agent: Thunderbird 2.0.0.19 (X11/20090105)

RandomLilyPondUser wrote:
I'm writing drum scores, and it takes a lot of copy and pasting for flams,
ruffs, and gracenotes.
For example, every time I need a flam, I have to paste this entire code:

\override Stem #'length = #4
\acciaccatura {sn8}
\revert Stem #'length
sn4

is there a way I can make a pointer to the code so I can type in something
like snflam that will call those lines
of code, so I don't have to paste all that stuff for every flam?

Of course. Check the Learning Manual section 5.1.4 "Saving Typing with Variables":

http://lilypond.org/doc/v2.12/Documentation/user/lilypond-learning/Saving-typing-with-variables-and-functions#Saving-typing-with-variables-and-functions

Jon

--
Jonathan Kulp
http://www.jonathankulp.com




reply via email to

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