lilypond-user
[Top][All Lists]
Advanced

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

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


From: Daniel Tobias Johansen Langhoff
Subject: Fwd: \bar "" as discretionary break point without affecting spacing
Date: Tue, 22 Dec 2020 00:08:56 +0100

Thank you!

I ended up doing this because I want the breath marks to be a bit off
the right edge.

%%%%
\version "2.20.0"

lineEnd = {
  \once \override BreathingSign.space-alist.staff-bar = #'(minimum-space . 0)
  \once \override BreathingSign.space-alist.right-edge = #'(extra-space . 1.0)
  \breathe \bar ""
}

\score {
  \relative a' {
    \override Score.BarLine.break-visibility = #end-of-line-invisible
    \omit Score.TimeSignature
    \cadenzaOn
    \repeat unfold 5 {
      \repeat unfold 8 { a4 } \lineEnd
    }
    \repeat unfold 8 { a4 }
    \revert Score.BarLine.break-visibility
    \bar "|."
  }
}
%%%%

On Mon, Dec 21, 2020 at 5:50 PM Aaron Hill <lilypond@hillvisions.com> wrote:
>
> 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]