lilypond-user
[Top][All Lists]
Advanced

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

Re: \bar "" as discretionary break point without affecting spacing


From: Aaron Hill
Subject: Re: \bar "" as discretionary break point without affecting spacing
Date: Mon, 21 Dec 2020 08:50:56 -0800
User-agent: Roundcube Webmail/1.4.9

On 2020-12-21 4:25 am, Daniel Tobias Johansen Langhoff wrote:
Hi!

I have some unmetered music in which I want to put discretionary line
breaks at the end of verse lines. Currently I am using \bar "". This
however, affects the spacing, most notably the position of the breath
marks. Is there any way to achieve this without spacing issues?

lineEnd = { \breathe \bar "" }

\score {
  \relative f' {
    \key f \major
    \omit Score.TimeSignature
    \cadenzaOn
    f4 a2 bes4 c2 bes4 a2 g4 a2 \lineEnd
    a4 a2 g4 bes4( a) g4 f2( e4) f2 \lineEnd
    f4 a2 bes4 c2 bes4 a2 g4 a2 \lineEnd
  }
}

Does this help?

%%%%
\version "2.20.0"

lineEnd = {
  \once \override BreathingSign.space-alist =
  #(grob-transformer 'space-alist
    (lambda (grob orig)
     (assoc-set! orig 'staff-bar '(minimum-space . 0))))
  \breathe
  \bar ""
}

\score {
  \relative f' {
    \key f \major
    \omit Score.TimeSignature
    \cadenzaOn
    f4 a2 bes4 c2 bes4 a2 g4 a2 \lineEnd
    a4 a2 g4 bes4( a) g4 f2( e4) f2 \lineEnd
    f4 a2 bes4 c2 bes4 a2 g4 a2 \lineEnd
  }
}
%%%%


-- Aaron Hill



reply via email to

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