|
From: | David Kastrup |
Subject: | Re: Catch direction operators |
Date: | Sun, 29 Sep 2013 09:51:20 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
David Kastrup <address@hidden> writes: > colorizeDir = > #(define-music-function (parser location item) > (symbol-list-or-music?) > (define (grob-colorize-dir grob) > (let ((ev (event-cause grob))) > (and ev (ly:event-property ev 'direction #f) > red))) > #{ \tweak color #grob-colorize-dir #item #}) Not everything might be prepared to deal with a color #f, so it may be safer to write the slightly more complex (if (and ev (ly:event-property ev 'direction #f)) red '()) expression inside. -- David Kastrup
[Prev in Thread] | Current Thread | [Next in Thread] |