David Kastrup <d...@gnu.org> writes:

> M Watts <zwy648...@gmail.com> writes:
>
>> David Kastrup wrote:
>>> Hi, the following is an excerpt from a systematic listing of accordion
>>> chords with different ambitus.  The ambitus engraver should not heed the
>>> first (arbitrary) key signature but rather engrave as though we were in
>>> c major.
>>>
>>> How do I do that?
>>>
>>>   
>>
>> I guess you discovered that if you try setting a key signature just
>> for the ambitus, then changing it for the music, results in the
>> amusing "warning: Two simultaneous key-change events, junking this
>> one", which doesn't work.
>>
>> One solution is to add this line to each \new Voice:
>>
>> \override AmbitusAccidental #'(glyph-name-alist) = #'((0 . null) (-1/2
>> . null) (1/2 . null) (1 . null) (-1 . null))
>>
>> The console spits out "warning: Could not find glyph-name for
>> alteration -1/2" etc. etc., but it seems to do the job.
>
> Wouldn't that just leave off the accidentals from the ambitus?  That
> would not be the desired effect.  The desired effect is to have
> accidentals relative to C major.
>
> I have not checked yet, but nulling the glyph-names would appear to have
> this effect, or do I just not understand what is done here?  If the
> latter, could you explain?

Actually, I have not been able to find a place in my posted example code
where the above incantation would cause either a change or a warning.

Hm.

-- 
David Kastrup



_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to