lilypond-user
[Top][All Lists]
Advanced

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

Re: Extra space at the beginning of the bar


From: Paolo Prete
Subject: Re: Extra space at the beginning of the bar
Date: Sun, 25 Mar 2018 15:01:27 +0200

Hi Kieren


2018-03-25 13:41 GMT+02:00 Kieren MacMillan <address@hidden>:
Hi Paolo,


You’d have to add an equivalent tweak for any prefatory material (Clef, KeySignature, etc.).


Doesn't work for skip events too...

 
> and the second option doesn't add space if the measure starts with a rest or skip event.
> I could use   "\tweak Rest.extra-spacing-width ... " for the rest but I don't know what to apply to a skip event...
> How can I fix that?

1. What music do you have that doesn’t include a grob of any sort in the first moment of the measure?



Have a look at this snippet (  http://lilybin.com/p2whaw/1  ) :


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

upper = {
   c'8 c' \change Staff = "down" g \change Staff = "up" c' 
   \change Staff = "down" \stemUp g g \change Staff = "up" c' \change Staff = "down" c'
}

lower = { 
   s8\f s s\mf s s\mp s s\p s
}

\score {      
  \new PianoStaff
  <<         
    \new Staff = "up"   << \upper >>
    \new Staff = "down" << \clef bass \lower >>
  >>  
}

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

... as you can see, there's no way to add extra-space at the beginning of the measure, without work-arounds (like the one you just proposed).


2. How about

    { \once \hide Rest \tweak Rest.extra-spacing-width #'(-10 . 0) r4 c'4 4 4 }


It does the job but I don't think it's a good solution. I wonder if is there a more general solution, given that in cross-staff music, it frequently happens that I have to place dynamics like the snippet above, and skip-events cause issues for the alignment of the attached items.
Again: I think that these events must be managed as graphic objects, with the extra-spacing-width and X-offset properties. I don't understand why they don't implement these interfaces and I wonder if is there a way to override this behaviour (with some _global_ scheme code)


 

reply via email to

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