lilypond-user
[Top][All Lists]
Advanced

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

Re: Custom / Fine tuning vertical space between piano staff lines


From: Harald Christiansen
Subject: Re: Custom / Fine tuning vertical space between piano staff lines
Date: Mon, 20 Jun 2016 09:00:39 +1000

Hi Joram,

Unfortunately "\once \override NoteHead.minimum-Y-extent = #'(-20 . 0)" gives me a horrible result:
- the note stem is extended
- it increases the space between the piano staves (i.e. between the G clef staff and the F staff clef) which I don't want.

And yes I want to add padding between two specific piano staves.

What I think/guess I need is the padding in staffgroup-staff-spacing
http://lilypond.org/doc/v2.18/Documentation/internals/staffgrouper
applied only \once between two staff groups.
But what I tried didn't work.

...

I tried to enable the Frescobaldi's display skylines (hidden inside Tools -> Layout Control Options, took me a while to find out) but I couldn't see any "blue lines",
only blue boxes associated with notes and other elements. Maybe I'm doing something wrong ...

Thanks.

Regards.

 
On Sun, Jun 19, 2016 at 9:36 PM, Noeck <address@hidden> wrote:
Hi Harald,

while a custom positioning of one or two staves seems like a reasonable
way to go, your question sounds a bit different:

>> I need to add some supplemental white space between piano staff lines
>> (to avoid a crowded look and near clashes).

LilyPond already tries to avoid clashes and I think instead of moving or
spacing staves, this is the point to tweak the result: You can add
padding or increase the extent of an object. Then LilyPond will take
this into account when spacing the score.

Here is an example:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

 \version "2.18.2"

 \new PianoStaff <<
   \new Staff {
     a1 \break
     \once \override NoteHead.minimum-Y-extent = #'(-20 . 0)
     % or: \tweak #'minimum-Y-extent #'(-20 . 0)
     a b \break
     c
   }
   \new Staff { \clef "bass" a b' c'  c }
 >>

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

It adds 20 staff spaces to the bounding box of the note a on the
negative side (-20). If you compile with Frescobaldi's "display
skylines" option, you can see the box in aqua color (light blue).

The note head might not be the best example but you can choose the
object that is closest to the upper/lower staff, the one that you want
to have more space.

I could not find the setting which I suppose is similar to
\papger { annotate-spacing = ##t }
such that you can directly use the normal lilypond and see the skylines.
Maybe someone can point me to it...

Cheers,
Joram


_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user




--
Nihil verus. Omnia possibilia.

reply via email to

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