instrument name misalignment

View: New views
5 Messages — Rating Filter:   Alert me  

instrument name misalignment

by Alan Shaw :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have several instances where instrument names are too high, much higher than the staff center line. It happens with both full and short names, but only when a volta bracket is over the first measure.

If this rings a bell and merits further discussion, I can provide examples.

Thanks,

Alan

Re: instrument name misalignment

by Gilles Sadowski :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi.

> I have several instances where instrument names are too high, much higher
> than the staff center line. It happens with both full and short names, but
> only when a volta bracket is over the first measure.
>
> If this rings a bell and merits further discussion, I can provide examples.

Without an example, it's hard to gues what's going wrong ;-)

Best,
Gilles

P.S. Keep the example minimal (i.e. just enough code to display the
     behaviour).


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

Re: instrument name misalignment

by Alan Shaw :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You're right of course; I just thought it was worth asking on the off chance that someone would know right away what I was talking about and I could save myself the hour or so it would take to construct a "minimal" example.

In the course of doing that I've found one further necessary condition for the problem to appear: the volta engraver has to be in the Staff context. In the example below, there should be a line break between first and second ending at the default line width. The "Mar." appears about even with the top staff line. If you leave the volta engraver in the Score context, the name is normally centered.

Of course in the example there is no good reason to move the volta engraver, but in the actual music there is.

Thanks,

Alan
[snippet follows]

\version "2.12.2"

\paper {
ragged-last = ##t
}
\layout {
       
    \context {
           \RemoveEmptyStaffContext
       }
   
    \context { \Score
           \override VerticalAxisGroup #'remove-first = ##t
           \remove "Volta_engraver"
           }          
    }
   
MarOne =  \relative cis' {
    \clef "bass" \key a \minor \numericTimeSignature\time 4/4
       \repeat volta 2 {
             e,8 a16 a16 a8 a8 b8 b8 a8 a16 a16 |  
            e,8 a16 a16 a8 a8 b8 b8 a8 a16 a16 |
            d,8 d8 d cis8  r2 |  }
            \alternative  {
                   { r4 r r8 e8 e4 | }
                   {  r4 fis8 g8 fis8 g8 fis8 g8 |   }
                 }
             }  
             
OrgOne =  \relative e' {
    \clef "treble" \key a \minor \numericTimeSignature\time 4/4
            \repeat volta 2 {
              <e a>8 _. <e a>8 _. <e a>8
            _. <e a>8 _. <e b'>8 _. <e b'>8 _. <e a>8 _. <e a>8 _. |
            R1 |
            <e d'>8 _. <e d'>8 _. <e d'>8 _. <e cis'>8 _. r2 |  }
            \alternative   {
                       {  r4 r r8 <e a>8 _. <e a>8 _. <e a>8 _. | }
                       {   s1 |  }
                }
            }

OrgThree =  \relative e {
    \clef "bass" \key a \minor \numericTimeSignature\time 4/4
           \repeat volta 2 {
             a,8 _. a8 _. d8 _. a8 _. cis8
            _. a8 _. a'4 |
            R1 |
            a8 ^. a8 ^. a8 ^. a,8 ^. a8 ^. a8 ^. a8 ^. a,8 ^. | }
            \alternative   {
                    { r4 r r8 a'8 ^. a8 ^. a8 ^. |  }
                    {  s1 |  }
                 }    
         }

\score {
    <<
        \new Staff  \with {
        \consists "Volta_engraver" }
                     <<
            \set Staff.instrumentName = "Marimba"
            \set Staff.shortInstrumentName = "Mar."
            \context Staff <<
                \context Voice = "MarOne" { \MarOne }
                >>
            >>
                 
        \new PianoStaff <<
            \set PianoStaff.instrumentName = "Organ"
            \set PianoStaff.shortInstrumentName = "Org."
            \context Staff = "1" <<
                \context Voice = "OrgOne" { \OrgOne }
                >> \context Staff = "2" <<
                \context Voice = "OrgThree" { \OrgThree }
                >>
            >>                
        >>
    \layout {}
   
    }


Gilles Sadowski wrote:
Hi.

> I have several instances where instrument names are too high, much higher
> than the staff center line. It happens with both full and short names, but
> only when a volta bracket is over the first measure.
>
> If this rings a bell and merits further discussion, I can provide examples.

Without an example, it's hard to gues what's going wrong ;-)

Best,
Gilles

P.S. Keep the example minimal (i.e. just enough code to display the
     behaviour).


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

Re: instrument name misalignment

by Reinhold Kainhofer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Am Montag, 6. Juli 2009 14:58:30 schrieb Alan Shaw:

> You're right of course; I just thought it was worth asking on the off
> chance that someone would know right away what I was talking about and I
> could save myself the hour or so it would take to construct a "minimal"
> example.
>
> In the course of doing that I've found one further necessary condition for
> the problem to appear: the volta engraver has to be in the Staff context. In
> the example below, there should be a line break between first and second
> ending at the default line width. The "Mar." appears about even with the
> top staff line. If you leave the volta engraver in the Score context, the
> name is normally centered.
>
> Of course in the example there is no good reason to move the volta
> engraver, but in the actual music there is.
Attached is an even more minimal example (for the bug tracker). I also noticed
that the problem does not appear with the first alternative (if the first
alternative starts in a new line), but only with the second.

The problem also appears with lilypond 2.13.2.

Cheers,
Reinhold

--
------------------------------------------------------------------
Reinhold Kainhofer, reinhold@..., http://reinhold.kainhofer.com/
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * LilyPond, Music typesetting, http://www.lilypond.org

[volta.ly]

\version "2.12.2"

\layout {
    \context { \Score
           \remove "Volta_engraver"
    }
}

testMusik =  \relative c'' {
  \repeat volta 2 {
    c1 \break
  } \alternative {
    { c1 \break }
    { c1 \break }
  }
  c1
}  

\score {
  \new Staff  \with {
    \consists "Volta_engraver"
    instrumentName = "Instrument"
    shortInstrumentName = "Instr."
  }
  <<
    \testMusik
  >>
}



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

volta.pdf (27K) Download Attachment

Re: instrument name misalignment

by Graham Percival-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks, added as
http://code.google.com/p/lilypond/issues/detail?id=789

Cheers,
- Graham

On Mon, Jul 06, 2009 at 03:22:26PM +0200, Reinhold Kainhofer wrote:

> Am Montag, 6. Juli 2009 14:58:30 schrieb Alan Shaw:
> > You're right of course; I just thought it was worth asking on the off
> > chance that someone would know right away what I was talking about and I
> > could save myself the hour or so it would take to construct a "minimal"
> > example.
> >
> > In the course of doing that I've found one further necessary condition for
> > the problem to appear: the volta engraver has to be in the Staff context. In
> > the example below, there should be a line break between first and second
> > ending at the default line width. The "Mar." appears about even with the
> > top staff line. If you leave the volta engraver in the Score context, the
> > name is normally centered.
> >
> > Of course in the example there is no good reason to move the volta
> > engraver, but in the actual music there is.
>
> Attached is an even more minimal example (for the bug tracker). I also noticed
> that the problem does not appear with the first alternative (if the first
> alternative starts in a new line), but only with the second.
>
> The problem also appears with lilypond 2.13.2.
>
> Cheers,
> Reinhold
>
> --
> ------------------------------------------------------------------
> Reinhold Kainhofer, reinhold@..., http://reinhold.kainhofer.com/
>  * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
>  * http://www.fam.tuwien.ac.at/, DVR: 0005886
>  * LilyPond, Music typesetting, http://www.lilypond.org

> \version "2.12.2"
>
> \layout {
>     \context { \Score
>            \remove "Volta_engraver"
>     }
> }
>
> testMusik =  \relative c'' {
>   \repeat volta 2 {
>     c1 \break
>   } \alternative {
>     { c1 \break }
>     { c1 \break }
>   }
>   c1
> }  
>
> \score {
>   \new Staff  \with {
>     \consists "Volta_engraver"
>     instrumentName = "Instrument"
>     shortInstrumentName = "Instr."
>   }
>   <<
>     \testMusik
>   >>
> }


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



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