bug-lilypond
[Top][All Lists]
Advanced

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

Ambitus engraver should prefer its key signature


From: David Kastrup
Subject: Ambitus engraver should prefer its key signature
Date: Fri, 27 Feb 2009 10:33:46 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

> I'm not top posting.

The ambitus engraver will, when determining the ambitus interval, pick
the first enharmonic description of a note, even if a note better
matching its key signature crops up later.

Since the purpose of the ambitus is describing requirements for an
instrument, the accidental composition of a note need not really be
preserved.  So personally I would consider it perfectly ok to write an
ambitus reaching to c''' rather than bis'' even if one removed the final
note from the example.

I would propose that if the key signature of the ambitus engraver can
place a note without accidental with the same absolute pitch as the
engraved note, then it should prefer that over the actually occuring
note.  That should be reasonably simple to do since it does not require
knowledge of the ambitus key signature while tracking the interval, but
merely when the ambitus is actually typeset.

%% Ambitus engraver should prefer its key signature

\version "2.12.3"
\paper{ ragged-right=##t }
\new Voice \with {\consists "Ambitus_engraver"}
{
  \clef treble
  \key c \major
  c'1
  \key b \major
  bis''
  \key c \major
  c'''
}
-- 
David Kastrup

reply via email to

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