lilypond-user
[Top][All Lists]
Advanced

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

Re: system-system-spacing in \layout block


From: Jean Abou Samra
Subject: Re: system-system-spacing in \layout block
Date: Sun, 22 May 2022 17:38:29 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1



Le 22/05/2022 à 16:10, Knute Snortum a écrit :
On Sat, May 21, 2022 at 1:47 PM Knute Snortum <ksnortum@gmail.com> wrote:
On Sat, May 21, 2022 at 1:14 PM Jean Abou Samra <jean@abou-samra.fr> wrote:
There is a vast array of other options available; I suggest to give
more information on your score if none of these two solutions
is sufficient for you.
Thank you, Jean.  As always, a thorough and informative answer!
Hi Jean,

While I was playing with your "macro" enlarge, I ran into a problem.
If the left hand has notes with stems, the stem will be way too long.

%%%
\version "2.22.2"

enlarge = \tweak vertical-skylines #(ly:make-unpure-pure-container
   ly:grob::simple-vertical-skylines-from-extents)
   \tweak Y-extent
   \etc

rightHand = { c'4 4 4 4 \break | c'4 4 4 4 }

leftHand = { \clef bass \enlarge #'(-20 . 0) c4 4 4 4 | c4 4 4 4 }

\score {
    \new PianoStaff <<
      \new Staff \rightHand
      \new Staff \leftHand
    >>
}
%%%

(The main difference is that the left hand part has notes with stems.)

Is there a way to fix this?  If this doesn't give way to a simple
solution, I may post all my code to Google Drive and give a detailed
explanation of the problem I'm facing.  (Would people feel comfortable
clicking a Google Drive link?)


Well yes, that's the problem with this approach: it disturbs
other spacing. You could try another object, e.g.

\version "2.22.2"

enlarge = \tweak vertical-skylines #(ly:make-unpure-pure-container
  ly:grob::simple-vertical-skylines-from-extents)
  \tweak Y-extent
  \etc

rightHand = { c'4 4 4 4 \break | c'4 4 4 4 }

leftHand = { \clef bass c4\single \hide Script \enlarge #'(-30 . 0) _. 4 4 4 | c4 4 4 4 }

\score {
   \new PianoStaff <<
     \new Staff \rightHand
     \new Staff \leftHand
   >>
}

In the end, the easiest solution might actually be overriding
the system offsets manually, as explained in
https://lilypond.org/doc/v2.22/Documentation/notation/explicit-staff-and-system-positioning.html

Jean



reply via email to

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