lilypond-user
[Top][All Lists]
Advanced

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

Re: spacing of invisible rests


From: Jaime Oliver
Subject: Re: spacing of invisible rests
Date: Fri, 24 Mar 2023 18:31:30 -0400

Hi William, 

Indeed what I am after is a s4 that takes some space, I am currently solving it with 

things like: 

\once \hide Rest  r16 \once \hide Rest r16
\once \hide Rest  r16 \once \hide Rest r16

which will take some more space, but it is not ideal.

best,

Jaime

On Fri, Mar 24, 2023 at 6:03 PM William Rehwinkel <william@williamrehwinkel.net> wrote:
Dear Jaime,

If you mean silent rests such as s4, s8 etc. I thought those do not
actually take up any space, and are analogous to using \skip for that
duration. As in the following example:

\version "2.24.1"

<<
   \new Staff {
     c'1 c'1
   }
   \new Staff {
     \repeat unfold 128 { s128 }
   }
 >>

As for how to make measures longer, I usually override the
NoteHead.extra-spacing-width (or same, for Rest) property to add more
horizontal space before or after a note, but I'm not sure that will be
the best option here.

-William

On 3/24/23 17:56, Jaime Oliver wrote:
> Hi all,
>
> I am trying to control the amount of space that s events take on each
> bar so that I can make some bars longer. Is there a way I can specify
> this? Also, some bars which have values like R1 are also really short,
> how can I make those longer?
>
> In other words, is there a way to make bars visually longer even if they
> show empty space?
>
> I have tried things like the one below but have not had good results
> \layout{
>     \context {
>          \Score
>                    proportionalNotationDuration = #(ly:make-moment 1/32)
>                    \override SpacingSpanner.base-shortest-duration =
> #(ly:make-moment 1/32)
>                    \override SpacingSpanner.uniform-stretching = ##t
>
> I am also attaching a screenshot so you can see the kinds of results I
> am getting.
>
> All the best,
>
> Jaime
>
> image.png
>

--
+ ---------------------------------------------- +
|    William Rehwinkel - Oberlin College and     |
|                           Conservatory '24     |
|          william@williamrehwinkel.net          |
| PGP key:                                       |
| https://williamrehwinkel.net/static/pubkey.txt |
+ ---------------------------------------------- +


--
**********************
Jaime E Oliver LR
www.jaimeoliver.pe


reply via email to

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