bug-lilypond
[Top][All Lists]
Advanced

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

Re: Spacing problems


From: Phil Holmes
Subject: Re: Spacing problems
Date: Sat, 5 Mar 2011 12:23:40 -0000

----- Original Message ----- From: "Neil Puttock" <address@hidden>
To: "Phil Holmes" <address@hidden>
Cc: <address@hidden>
Sent: Friday, March 04, 2011 8:10 PM
Subject: Re: Spacing problems


On 4 March 2011 18:25, Phil Holmes <address@hidden> wrote:
> I reported on .user some problems I had with trying to get Ossia staves
> properly spaced.
> (http://www.mail-archive.com/address@hidden/msg62140.html) Didn't > get > a response, except from another user on .bugs who reported a problem > with
> alignBelowContext. I've now taken out all of the .13 specific spacing
> statements from my code, and run it through .12.3 and get almost perfect
> output first time. Also, with .12.3 I get a clean compile, with .13.52 I
> get 878 (count-em) repetitions of:
>
> "warning: staff-affinities should only decrease"

Are you trying to put a Lyrics context inside a Staff context?

For example, you shouldn't do this:

\new Staff <<
  \new Voice { ... }
  \new Lyrics { ... }

I've done that for the last year on every single score I've produced - literally 100s of them - and have never had a problem or an error reported. That said, I don't think that's what I have in the file giving this problem. I did give the full detail in a previous mail, but a skeleton looks like this:

\new Staff = "MainStaff" <<
 \new Voice = "MainVoice" { SomeMusic
   << {
       OtherMusic
     }
     \new Staff = "Ossia" \with {
       \remove "Time_signature_engraver"
       alignAboveContext = #"MainStaff"
\override StaffSymbol #'staff-space = #(magstep -3) % Sets the staff line spacing
       fontSize = #-2
     }
     \new Voice = "Testing" {
       Music
     }
     \new Lyrics \with {
       alignBelowContext = "Ossia"
     }
     \lyricsto "Testing" { Words }
   >>
   MoreMusic
   }
   \new Lyrics \lyricsto "MainVoice" { \OtherWords }
 >>

So I think I've got brackets << >> including the simultaneous events, which includes the existing music, the new Ossia staff, the Ossia music and the Ossia lyrics. So it appears to be right from what you've suggested, but I still can't place the lyrics properly without hundreds of warnings. There was no problem with doing this in 2.12.

> So - to me this is a regression and I'm gonna make a bug report to that
> effect tomorrow unless anyone can explain what's going on and how to fix > it.
> Images are attached.

You're probably using the wrong spacing properties.  Any stave aligned
using align(Above|Below)Context is a loose line (like lyrics), so you
need to use the nonstaff-* properties.

OK, thanks. This has moved me forward and I can now move the Ossia up and down. However, using default system-system-spacing means that (I've just worked out) the staves of the main music don't move apart at all to accommodate the Ossia stave - they only move slightly to accommodate the ossia lyrics. system-system stretchability has no effect on this. I'm getting pretty certain that this is the bug - main staves are not spaced to accommodate temporary staves.

If I set system-system-spacing #'basic-distance = #50 then I can move the Ossia up and down with, for example

\override VerticalAxisGroup #'nonstaff-relatedstaff-spacing #'basic-distance = 30

But I don't want all my music to have large gaps in it just to accommodate occasional temporary staves.

> James Lowe reported too late last night that he couldn't space scores > apart
> from one another.
> (http://www.mail-archive.com/address@hidden/msg62149.html). I > tried
> and failed, and concluded that score-system-spacing appears to have no
> effect. This also appears to be a regression, since we could space > scores > apart on the page in 2.12. Again, I'll raise this as a separate > regression
> tomorrow.

Works fine here:


See my reply to Carl, thanks.

--
Phil Holmes




reply via email to

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