Menu

#762 Ambitus engraver should be smarter about accidentals

Accepted
nobody
None
Enhancement
2015-09-28
2009-03-06
Anonymous
No

Originally created by: *anonymous

Originally created by: v.villenave
Originally owned by: v.villenave

New report from David:

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.  Therefore in the following example it would be ok to write
anambitus reaching to c''' rather than bis''.

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.

\version "2.12.3"

\new Voice \with { \consists "Ambitus_engraver"
} {
  \clef treble
  \key c \major
  c'1
  \key b \major
  bis''
  \key c \major
  c'''
}

Discussion

  • Google Importer

    Google Importer - 2010-04-19

    Originally posted by: wferi%ni...@gtempaccount.com

    In the same vein, I'd prefer the ambitus being explicit about accidentals, that is, to ignore the key signature, which it precedes anyway. The output of the following snippet suggests c'-b', while in reality it's c'-bes'. I've seen this convention in printed material as well, but have no real statistics.

    \version "2.12.3"
    \new Voice \with {\consists "Ambitus_engraver"}
    {
      \key f \major
      c' bes'
    }
    
     

    Last edit: Simon Albrecht 2015-09-28
    • Simon Albrecht

      Simon Albrecht - 2015-09-28

      See issue [#4396] for this topic.

       

      Related

      Issues: #4396

  • Simon Albrecht

    Simon Albrecht - 2015-09-28
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -21,15 +21,18 @@
     knowledge of the ambitus key signature while tracking the interval, but
     merely when the ambitus is actually typeset.
    
    +~~~~
    +:::TeX
     \version "2.12.3"
    
    -\new Voice \with \{\consists "Ambitus\_engraver"\}
    -\{
    - \clef treble
    - \key c \major
    - c'1
    - \key b \major
    - bis''
    - \key c \major
    - c'''
    -\}
    +\new Voice \with { \consists "Ambitus_engraver"
    +} {
    +  \clef treble
    +  \key c \major
    +  c'1
    +  \key b \major
    +  bis''
    +  \key c \major
    +  c'''
    +}
    +~~~~
    
    • Needs: -->
    • Patch: -->