Neil Puttock <n.putt...@gmail.com> writes: > On 5 September 2011 17:29, <d...@gnu.org> 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 _______________________________________________ lilypond-devel mailing list lilypond-devel@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-devel