lilypond-user
[Top][All Lists]
Advanced

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

Re: Simple example with vertical spacing and dynamic contexts


From: Ben
Subject: Re: Simple example with vertical spacing and dynamic contexts
Date: Mon, 11 Mar 2019 16:04:09 -0400
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.3

On 3/11/2019 3:33 PM, Павел Буданов wrote:
I found a temporary way to control the vertical spacing in the middle of the piece. It looks awful, but it works. I still hope that someone will suggest a more correct way.

\new StaffGroup
<<
   \new Staff
   {
     c' c' c' c' \break
     % Add an invisible very low note to push the staffs.
     c'4*1/2 \once \hideNotes c,,,,,8 c'4 c' c'
   }
   \new Staff { c' c' c' c' c' c' c' c' }
>>

Hello,

I'm sure other people have different ways they approach this, but for me this works great so far with no negative side effects in my projects. Granted, I don't use this code often but it's never failed me yet. Basically, it's just a very small markup blank space or if you prefer, a vertical spacer instead. Hope this helps you.

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

\version "2.19.82"


% _\markup \lower #3 " "
% or
% ^\markup \raise #3 " "


% also you could define something like this
verticalSpacer = -\markup \transparent \draw-line #'(0 . 12)
% and input it inline with music

\new StaffGroup
<<
  \new Staff
  {
    c'4 c' c' c' \break
    c' c' c' c'
  }
  \new Staff { c' c' c' c' c' c'^\markup \raise #10 " " c' c' }
>>

\new StaffGroup
<<
  \new Staff
  {
    c'4 c' c' c' \break
    c' c' c' c'
  }
  \new Staff { c' c' c' c' c' c'^\verticalSpacer c' c' }
>>


Attachment: help with spacing.png
Description: PNG image


reply via email to

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