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: David Kastrup
Subject: Re: Make accidental styles available as context mods. (issue 4819064)
Date: Mon, 05 Sep 2011 21:48:03 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Neil Puttock <address@hidden> writes:

> 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.

Well, that's what I proposed after all.  I have a lousy memory for
syntax.

-- 
David Kastrup



reply via email to

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