lilypond-user
[Top][All Lists]
Advanced

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

Re: Orphaned bars


From: Carl Sorensen
Subject: Re: Orphaned bars
Date: Sun, 15 Jan 2012 00:07:38 +0000
User-agent: Microsoft-MacOutlook/14.10.0.110310

On 1/13/12 7:02 PM, "Vaughan McAlley" <address@hidden> wrote:

>I work with renaissance choral music separated into sections with
>double barlines. ThereĀ¹s not really any need to put a line-break at
>these double bars, but it looks bad if the last bar of a section
>begins a line or the first bar of a section ends a line:
>
>https://docs.google.com/open?id=0B0YNwfxb13ZcY2E3NDAwZDAtZDEwNC00ZDA1LTliO
>DktNDI2ZmM5MjNmODlm
>
>What would be nice is to have an option where
>
>% in global = {
>
>\skip breve.*78 bar "||"
>\skip breve.*66 bar "||"
>...
>
>expands to:
>
>\skip \breve.*77 \noBreak
>\skip \breve. \bar "||"
>\skip \breve. \noBreak
>
>\skip \breve.*64 \noBreak
>\skip \breve. \bar "||"
>\skip \breve. \noBreak
>...


sb =
#(define-music-function (parser layout length) (number?)
#{
  \skip \breve.* #(1- $length) \noBreak
  \skip \breve. \bar "||"
  \skip \breve. \noBreak
#})

global =  {
  \sb 78
  \sb 66
  \sb 33
}

HTH,

Carl




reply via email to

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