lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Catch direction operators


From: David Nalesnik
Subject: Re: Catch direction operators
Date: Sun, 29 Sep 2013 08:43:59 -0500

Hi Ming,


On Sun, Sep 29, 2013 at 8:37 AM, MING TSANG <address@hidden> wrote:
I was following the caption subject in lily user list. I run the following (copy from the lists).  I got error, please see the log at the end of lily code.
Thanks,
Ming

%lily code starts %%%%%%%%%%%%%%%%%
\version "2.17.27"
colorizeDir =
#(define-music-function (parser location item)
(symbol-list-or-music?)
(define (grob-colorize-dir grob)
(let ((ev (event-cause grob)))
(case (ly:event-property ev 'direction)
((1) red)
((-1) blue)

Remove one of the parentheses at the end of this line:
 
(else '())))))

[...] 

--David 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]