Menu

#3702 Ambitus not at beginning, engraver in Staff context

Accepted
nobody
None
Defect
2015-09-13
2013-12-03
Anonymous
No

Originally created by: *anonymous

Originally created by: *anonymous

Originally created by: RalphBug... (code.google.com)@gmail.com

Colin wrote :

I've modified it a bit further, putting the \consists in a \layout context. The effect is the same, in that an ambitus prevents a Staff from beiong considered empty, and this would be Bug 1.
The other effect I've noticed, which certainly seems to be Bug 2, is that declaring a \new Voice, when Ambitus_engraver is consisted in a Voice context, causes the ambitus  to be engraved at that point in musical time, wherever it occurs, and not at the start  of the staff.
If it occurs at a \break, the ambitus gets engraved *both* at the end of the previous staff, i.e. before the break, and also at the start of the new staff. This may be Bug 3, or not: I'm not familiar enough with ambitus to be sure. We basses just have to know I, IV and V anyway.

:::TeX
\version "2.17.95"
\score {
<<
\new Staff {
R1
\break
\new Voice
\relative { a'4 b c d }
}
\new Staff {
c'1
\break
% \new Voice

\relative { a'4 b c d }
}
>>
\layout {
\context {
\Staff
\RemoveEmptyStaves
\override VerticalAxisGroup #'remove-first = ##t
\consists "Ambitus_engraver" % ambitus behaves, but empty staff remains
}

\context {
\Voice
% \consists "Ambitus_engraver" %ambitus and empty staff misbehave
}
}
}

Discussion

  • Google Importer

    Google Importer - 2013-12-03

    Originally posted by: ColinPKC... (code.google.com)@gmail.com

    For clarity: this is referring to ambitus being engraved other than at the beginning of a part. The example comes from issue 3701 ( the "it" I modified above) with some more diagnosis.

    Labels: -Type-Ugly Type-Defect

     

    Related

    Issues: #3701

  • Trevor Daniels

    Trevor Daniels - 2015-09-13
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -4,67 +4,42 @@
    
     Colin wrote :
    
    -I've modified it a bit further, putting the \consists in a \layout context. The effect is the same, in that an ambitus prevents a Staff from beiong considered empty, and this would be [Bug 1](#1).
    -The other effect I've noticed, which certainly seems to be [Bug 2](#2), is that declaring a \new Voice, when Ambitus\_engraver is consisted in a Voice context, causes the ambitus&nbsp; to be engraved at that point in musical time, wherever it occurs, and not at the start&nbsp; of the staff.
    
    - If it occurs at a \break, the ambitus gets engraved \*both\* at the end of the previous staff, i.e. before the break, and also at the start of the new staff. This may be [Bug 3](#3), or not: I'm not familiar enough with ambitus to be sure. We basses just have to know I, IV and V anyway.
    +I've modified it a bit further, putting the \consists in a \layout context. The effect is the same, in that an ambitus prevents a Staff from beiong considered empty, and this would be Bug 1.
    +The other effect I've noticed, which certainly seems to be Bug 2, is that declaring a \new Voice, when Ambitus\_engraver is consisted in a Voice context, causes the ambitus&nbsp; to be engraved at that point in musical time, wherever it occurs, and not at the start&nbsp; of the staff.
    + If it occurs at a \break, the ambitus gets engraved \*both\* at the end of the previous staff, i.e. before the break, and also at the start of the new staff. This may be Bug 3, or not: I'm not familiar enough with ambitus to be sure. We basses just have to know I, IV and V anyway.
    
    -
    -
    +~~~~
    +:::TeX
     \version "2.17.95"
    -
    -\score \{
    -
    -&lt;&lt;
    -
    -\new Staff \{
    -
    -[r1]
    -
    +\score {
    +<<
    +\new Staff {
    +R1
     \break
    -
     \new Voice
    -
    -\relative \{ a'4 b c d \}
    -
    -\}
    -
    -\new Staff \{
    -
    +\relative { a'4 b c d }
    +}
    +\new Staff {
     c'1
    -
     \break
    -
     % \new Voice
    
    +\relative { a'4 b c d }
    +}
    +>>
    +\layout {
    +\context {
    +\Staff
    +\RemoveEmptyStaves
    +\override VerticalAxisGroup #'remove-first = ##t
    +\consists "Ambitus_engraver" % ambitus behaves, but empty staff remains
    +}
    
    -\relative \{ a'4 b c d \}
    +\context {
    +\Voice
    +% \consists "Ambitus_engraver" %ambitus and empty staff misbehave
    +}
    +}
    +}
    
    -\}
    -
    -&gt;&gt;
    -
    -\layout \{
    -
    -\context \{
    -
    -\Staff
    -
    -\RemoveEmptyStaves
    -
    -\override VerticalAxisGroup \#'remove-first = \#\#t
    -
    -\consists "Ambitus\_engraver" % ambitus behaves, but empty staff remains
    -
    -\}
    -
    -\context \{
    -
    -\Voice
    -
    -% \consists "Ambitus\_engraver" %ambitus and empty staff misbehave
    -
    -\}
    -
    -\}
    -
    -\}
    +~~~~
    
    • Needs: -->
    • Patch: -->
     

    Related

    Issues: #1
    Issues: #2
    Issues: #3

  • Trevor Daniels

    Trevor Daniels - 2015-09-13
     

Log in to post a comment.

MongoDB Logo MongoDB