lilypond-user
[Top][All Lists]
Advanced

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

Re: two-pass line breaking


From: Patrick McCarty
Subject: Re: two-pass line breaking
Date: Fri, 28 Nov 2008 11:57:35 -0800

Hi Basil,

On Fri, Nov 28, 2008 at 11:37 AM, Basil Crow <address@hidden> wrote:
>
> Suppose I have a .ly file with Score.timing set to false and no line breaks
> (that is, everything is typeset on one line):
>
> \relative c'
> {
> \set Score.timing = ##f
> f4 g a b
> f4 g a b
> f4 g a b
> f4 g a b
> f4 g a b
> f4 g a b
> f4 g a b
> f4 g a b
> f4 g a b
> f4 g a b
> f4 g a b
> f4 g a b
> }
>
> Now suppose I have the following preprocessed line breaks:
>
> tweaks = {
> \break
> \skip 1*4/1
> \break
> \skip 1*4/1
> \break
> \skip 1*4/1
> \break
> }
>
> How can I integrated these breaks into the score?

One method is to add "invisible" bars at the points where you need a \break:

%%% BEGIN %%%
\version "2.11.64"

tweaks = {
  \break
  \skip 1*4/1
  \break
  \skip 1*4/1
  \break
  \skip 1*4/1
  \break
}

\relative c' {
  \set Score.timing = ##f
  <<
    {
      \repeat unfold 12 { f4 g a b \bar "" }
    }
    \\
    {
      \tweaks
    }
  >>
}
%%% END %%%

HTH,
Patrick




reply via email to

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