Thanks, I've tried using these variables, but the file won't build, I get a
C:/Users/Master/Desktop/Drum Scores/test.ly:14:15: error: syntax error, unexpected STRING \acciaccatura { sn8} C:/Users/Master/Desktop/Drum Scores/test.ly:16:0: error: syntax error, unexpected STRING sn4 if I use this code: snflam = { \override Stem #'length = #4 \acciaccatura {sn8} \revert Stem #'length sn4 } Jonathan Kulp-2 wrote: > > 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 > > > _______________________________________________ > lilypond-user mailing list > lilypond-user@gnu.org > http://lists.gnu.org/mailman/listinfo/lilypond-user > > -- View this message in context: http://www.nabble.com/Drum-writing...is-there-a-way-to-save-and-recall-custom-commands--tp22043421p22061447.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user