|
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 linesof 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
[Prev in Thread] | Current Thread | [Next in Thread] |