lilypond-devel
[Top][All Lists]
Advanced

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

Re: How to do this correctly?


From: David Kastrup
Subject: Re: How to do this correctly?
Date: Thu, 28 Jan 2010 14:25:08 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (gnu/linux)

Neil Puttock <address@hidden> writes:

> 2010/1/27 Carl Sorensen <address@hidden>:
>
>> I don't think there is a way to do this better as the code sits now.  The
>> accidentals in the ambitus are AmbitusAccidentals, and are create by the
>> Ambitus_engraver, so the standard accidental styles (which might do what you
>> want) don't apply.
>
> Agreed.  I think you'd have to add a property to the Ambitus_engraver
> which tells it to ignore the key signature.

Well, I don't like extra interfaces.  I would be quite interested to
know why the posted code actually works, engraving the proper key and
using correct accidentals for it.  Is it because the Ambitus engraver
pulls its signature from the Voice context (where the engraver sits),
while the standard accidental engraver and key signature engraver take
it (unmodified) from the Staff, where it presumably is set by the \key
command?  Then probably per-voice accidentals would cease working.

Maybe it would be possible to just make \override Ambitus #'keySignature
= #'() work as expected.

-- 
David Kastrup




reply via email to

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