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:10:41 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Neil Puttock <address@hidden> writes:

> On 5 September 2011 17:29,  <address@hidden> wrote:
>>
>> http://codereview.appspot.com/4819064/diff/1/lily/context-mod-scheme.cc
>> File lily/context-mod-scheme.cc (right):
>>
>> http://codereview.appspot.com/4819064/diff/1/lily/context-mod-scheme.cc#newcode45
>> lily/context-mod-scheme.cc:45: LY_DEFINE (ly_make_context_mod,
>> "ly:make-context-mod",
>> Can you map this to #{ \with { ... } #} ?
>
> Hmm, I don't think so, since a context modification isn't music.

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

-- 
David Kastrup




reply via email to

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