[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lilypond-user
Subject:    Re: \bar "" as discretionary break point without affecting spacing
From:       Aaron Hill <lilypond () hillvisions ! com>
Date:       2020-12-21 16:50:56
Message-ID: b7f3eb9d3322b045964bc629e11cf25d () hillvisions ! com
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic