lilypond-user
[Top][All Lists]
Advanced

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

Re: Adjusting layout to bigger notes


From: Abraham Lee
Subject: Re: Adjusting layout to bigger notes
Date: Tue, 23 May 2023 07:58:02 -0600

Hi, Jakob!

On Tue, May 23, 2023 at 7:44 AM Jakob Pedersen <jakobp@vivaldi.net> wrote:
Greetings!

I'm writing some chorales for playing hymns on the organ. I've chosen a larger staff size to improve readability.

Having adjusted #(layout-set-staff-size ##) to 26, I'm noticing some less-than-fortunate side effects.

The key signature is very, very close to the clef, and the notes are too close to the bar line.



Is there an elegant way to adjust this to the larger staff size?

A minimal example:

\version "2.24.1"
\language "deutsch"

global = {
  \key f \major
  \time 3/2
}

rightOne = \relative c' {
  \global
f4 g f2 c | d4 e f2 a |
}

rightTwo = \relative c' {
  \global
c2 c a | b a c |
}

leftOne = \relative c {
  \global
a'4 g a2 a | f4 g c,2 f |
}

leftTwo = \relative c {
  \global
f4 e f2 f | b,4 g f2 f |
}

\score {
  \new PianoStaff <<
    \new Staff = "right" <<
      \new Voice = "soprano" {
        \voiceOne << \rightOne >>
      }
      \new Voice = "alto" {
        \voiceTwo << \rightTwo >>
      }
    >>
    \new Staff = "left" <<
      \clef bass
      \new Voice = "tenor" {
        \voiceOne << \leftOne >>
      }
      \new Voice = "bass" {
        \voiceTwo << \leftTwo >>
      }
    >>
  >>
 
  \layout {
    #(layout-set-staff-size 26)
  }
 
}


Best wishes,

Jakob

layout-set-staff-size is intended to resize an individual staff within a group of others at a default size. In your case, you've resized (but not respaced) all the Staffs relative to the implicit default 20 pt staff height, which is why things got cramped. What you want to do instead is put this command near the top of your file:

#(set-global-staff-size 26)

This changes the default staff size and respaces accordingly. By doing this, you can then remove the layout-set-staff-size command completely as it is no longer necessary.

Hope that helps,
Abraham 

reply via email to

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