Johan Vromans <jvrom...@squirrel.nl> writes: > David Kastrup <d...@gnu.org> writes: > >> rr = >> #(define-music-function >> (parser location dur) >> (ly:duration?) >> #{ \tweak direction #CENTER r$dur #}) >> >> would seem saner. > > Thanks for the suggestion. I needed > > #{ \tweak #'direction #'CENTER r$dur #}) > > but it sure looks nice(r). > > Do you know how to make the duration optional?
Not worth it. Optional arguments at the end of the argument list can only be skipped using \default, and writing \rr \default would not really save effort. -- David Kastrup _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user