lilypond-user
[Top][All Lists]
Advanced

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

Re: Bad alignment with \change Staff and \ottava


From: Thomas Morley
Subject: Re: Bad alignment with \change Staff and \ottava
Date: Thu, 2 Apr 2015 19:14:32 +0200

2015-04-02 18:03 GMT+02:00 René Brandenburger <address@hidden>:
> Dear list,
>
> I'm typesetting a piano piece whith a staff change from the lower to the
> upper staff, the upper staff having an ottava bracket. This leads to the
> lower chord being slightly shifted to the right.
> Is there a workaround for this?
>
> Regards
> René Brandenburger
>
> Example code follows, output attached:
>
> \version "2.19.16"
>
> right = \relative c'' {
>   R1

If you comment \ottava #1 the following warning is printed:
warning: this Voice needs a \voiceXx or \shiftXx setting
  <
   c' gis'>1
No idea why it is omitted with \ottava #1

>   \ottava #1
>   <g''! c>1
>   \ottava #0 |
> }
>
> left = \relative c' {
>   \clef bass
>   R1
>   \change Staff = "right"

% Following the warning you should insert here:
\voiceTwo

>   <c' gis'>1
>   \change Staff = "left"  |
>
> }
>
> \score {
>   \new PianoStaff <<
>     \new Staff = "right"{ \right }
>     \new Staff = "left" {  \left }
>   >>
>   \layout { }
> }



HTH,
  Harm



reply via email to

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