lilypond-devel
[Top][All Lists]
Advanced

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

Re: Make accidental styles available as context mods. (issue 4819064)


From: Reinhold Kainhofer
Subject: Re: Make accidental styles available as context mods. (issue 4819064)
Date: Mon, 5 Sep 2011 21:50:49 +0200
User-agent: KMail/1.13.6 (Linux/2.6.38-11-generic; KDE/4.7.0; i686; ; )

Am Montag, 5. September 2011, 21:25:50 schrieb Neil Puttock:
> On 5 September 2011 20:10, David Kastrup <address@hidden> wrote:
> > I suggest trying the following Lilypond fragment out.
> > 
> > #(define (make-accidental-mod style)
> >  "Make a context modification from accidental style @var{style}."
> >  (let ((style-settings '(1 2 3 4)))
> >   #{ \with { extraNatural = #(cadr $style-settings)
> >              autoAccidentals = #(caddr $style-settings)
> >              autoCautionaries = #(cadddr $style-settings) } #}))
> > #(display (make-accidental-mod 'modern))
> 
> Heh, silly me.  I was rather stupidly testing it with \set, which
> naturally causes the parser to complain.
> 
> I suppose this means ly:make-context-mod is redundant then.

I would still keep it so that one can create a context-mod directly in scheme 
without resolving to a #{..#} block...

Cheers,
Reinhold

-- 
------------------------------------------------------------------
Reinhold Kainhofer, address@hidden, http://reinhold.kainhofer.com/
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * LilyPond, Music typesetting, http://www.lilypond.org

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

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