lilypond-user
[Top][All Lists]
Advanced

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

NR 4.3.6 Explicit Breaks


From: Chip
Subject: NR 4.3.6 Explicit Breaks
Date: Tue, 10 Feb 2009 23:30:25 -0700
User-agent: Thunderbird 2.0.0.19 (Windows/20081209)

"When line-break-permission is overridden to false, Lily will insert line breaks at explicit \break commands and nowhere else."

I can't get this to work as quoted from the NR. Lily still breaks lines where it wants to.

My problem is this: I have many short snippets of music - horn (trumpet, trombone, sax) riffs. Some are as short as 2 measures, others might be as many as 20 measures or so. When the .pdf is created the staffs are of various lengths, and have huge space between them, sometimes just 3 staves are spread out over the full height of the page. Very weird looking. I've been messing around with the various ragged-... settings trying to get the staffs all the same length with the last staff to end at it natural length. And all printed in a nice looking block from the top of the page and ending, in my cases, in the middle of the page at the lowest. I just haven't found the magic combination to get this to work. Pasted below is the .ly file I am working on. Can someone help me?
--
Chip
====================

\version "2.12.1"
\layout {
ragged-right = ##t }
\include "english.ly"
%#(set-default-paper-size "letter")

global = {
  #(override-auto-beam-setting '(end 1 8 * *) 1 4 'Staff)
  #(override-auto-beam-setting '(end 1 8 * *) 2 4 'Staff)
  #(override-auto-beam-setting '(end 1 8 * *) 3 4 'Staff)
  \override MultiMeasureRest #'expand-limit = 1
  \set Score.skipBars = ##t
  \numericTimeSignature
  \override MultiMeasureRestNumber #'stencil = ##f
  \override NonMusicalPaperColumn #'line-break-permission = ##f
}
\paper {
left-margin = 30\mm
print-all-headers = ##t
  indent = #0
  %ragged-right = ##t
  ragged-bottom = ##t
  %line-width = 175\mm - 2.0 * 0.4\in
}

\score {
 \relative c'' { \time 4/4 \global
r2 r4 r8 fs
f?2 cs
ds8 ds ds ds ds r r fs
f?2 cs
ds8 ds ds ds ds r r fs \break
f?2 cs
ds8 ds ds ds ds r r fs
f?2 cs
ds8 ds ds ds ds r r4 \bar "||"
R1*2 \break
r4 r8 fs f? r r4
R1*2
    }
    \header {title = "Hooked (EMaj - F#m)"}
  }
\pageBreak
\score {
 \relative c'' { \time 4/4 \global
r4 r b8 b b b(
d8) r r d r4 r
    }
    \header {title = "Daddy Won't Mind (FMaj - Gm)"}
  }
\pageBreak
\score {
 \relative c'' { \time 4/4 \global
f1~
f2 d4 c
d4. c8 a2~
a2. g4
a1~
a2 \times 2/3 {a4 bf c}
a1~
a1 \bar "||" \break
R1*2
r8 bf a r r2
    }
    \header {title = "Sometimey People (Cm - Fm)"}
  }
\pageBreak
\score {
 \relative c'' { \time 4/4 \global
r4 a16 b a b \times 2/3 {a8 b cs } r4
r4 a16 b a b \times 2/3 {a8 b cs } r4
r4 a16 b a b \times 2/3 {a8 b cs } r4 \break
r4 a16 b a b a fs fs fs r4 \bar "|:"
s1
r2 r4 r16 fs fs fs
fs r r8 r4 r2
s1 \bar ":|"
    }
    \header {title = "Black Day (Em - GMaj)"}
  }
\pageBreak
\score {
 \relative c'' { \time 4/4 \global
r4 r ef2~
ef2~ ef4. cs8
b4 gs-^ gs2~
gs1 \bar "|:"
r4 r ef'2~
ef2~ ef4. cs8 \break
b4 gs-^ gs4. fs8
gs b gs2 r4 \bar ":|"
R1*3 \bar "|:"
r2 r4 r8 ef'
cs r r4 r2
R1*2 \bar ":|"
    }
    \header {title = "Jah Son (Em - F#m)"}
  }
\pageBreak
\score {
 \relative c'' { \time 4/4 \global
r4 fs8 e fs e cs e
fs r r4 r2
r4 fs8 e fs e cs e
cs r r4 r2
r4 fs8 e fs e cs e
fs r r4 r2
r4 fs8 e fs e cs e
cs8 r r cs r2
    }
    \header {title = "Runaway Slave"}
  }
\pageBreak
\score {
 \relative c'' { \time 4/4 \global
d1~
d2~ d8. d16 c bf a8
bf2. d8 d
bf1 \bar "||"
R1*16
d2~ d8. d16 c16 bf a8
bf2. d8 d
bf r r4 r2 \break
R1*10
d2~ d8. d16 c16 bf a8
bf2. d8 d
bf r r4 r2
R1*25
d2~ d8. d16 c16 bf a8
bf2. d8 d
bf r r4 r2
R1*8
d2~ d8. d16 c16 bf a8
bf2. d8 d
bf r r4 r2
R1*7
d2~ d8. d16 c16 bf a8
bf2. d8 d
bf r r4 r2
R1*5
d2~ d8. d16 c16 bf a8
bf2. d8 d
bf r r4 r2
}
    \header {title = "Anxiety Attack"}
  }
\pageBreak
\score {
 \relative c'' { \time 4/4 \global
r4 e-^ e-^ r8 e
g-. g-. g-. g-. g4-- fs-^
r4 e-^ e-^ r8 e
g8-. g-. g-. g-. g4-- fs-^
r4 e-^ e-^ r8 e
g8-. g-. g-. g-. g4-- fs-^ \break
r4 e-^ e-^ r8 e-^
e b b b b4-- cs-.
s1 \bar ":|:"
s1
r2 r8 e e fs
g4 r4 r2 \break
s1 \bar ":|"
s1 \bar "|:"
e4-^ r8 e-^ r4 e
g8-. g-. g-. g-. g4-- fs-^
e4-^ r8 e-^ r4 e
g8-. g-. g-. g-. g4-- fs-^ \break
e4-^ r8 e-^ r4 e
g8-. g-. g-. g-. g4-- fs-^ \bar ":|"
e4-^ r8 e-^ r4 e
e8 b b b b4-- cs-.
    }
    \header {title = "Froggy"}
  }
\pageBreak
\score {
 \relative c'' { \time 4/4 \global
d1
b4 d2.
c8 c r c r c e4--
d-^ r r2
d1
b4 d2.
g,8 g r g r g b4--
a-^ r r2
s1 \bar ":|"
    }
    \header {title = "More"}
  }

reply via email to

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