lilypond-user
[Top][All Lists]
Advanced

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

Re: passing a Context to a scheme function (format-metronome-markup)


From: Han-Wen Nienhuys
Subject: Re: passing a Context to a scheme function (format-metronome-markup)
Date: Wed, 8 Oct 2008 00:30:55 -0300

On Tue, Oct 7, 2008 at 2:12 PM, Reinhold Kainhofer
<address@hidden> wrote:
>
> (define-public (format-metronome-markup text dur count . context)
>  (let* ((ctx (and (pair? context) (car context)))
>         (hide-note (and ctx (eq? #t (ly:context-property
> ctx 'tempoHideNote))))
>         (note-mark (if (and (not hide-note) (ly:duration? dur))
> ...
>
> I don't know how useful this might be in general, but since it's such an easy
> feature (and I don't think it breaks anything), I prepared a patch:

I prefer if you made the function take a boolean instead, and use
another function (calling the one using the bool) to plug in to the
engraver.



-- 
Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen




reply via email to

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