|
From: | Simon Albrecht |
Subject: | Dot-separated list as music function argument |
Date: | Tue, 08 Jul 2014 13:39:26 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 |
Hello everybody, I just wrote a music function to mark grobs as editorial addition by colouring them grey. See the code and an example: \version "2.19.8"
ed = #(let ((string-or-list? (lambda (grob) (or (string? grob) (list? grob))))) (define-music-function (parser location grob mus) (string-or-list? ly:music?) #{ \override $grob . color = #(x11-color 'grey40) $mus \revert $grob . color #} ) )
\relative { \ed NoteHead c' \ed #'(Staff
Accidental) { cis dis } es }
Best regards, |
[Prev in Thread] | Current Thread | [Next in Thread] |