lilypond-user
[Top][All Lists]
Advanced

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

Re: sample from snippets library doesn't seem to work correctly?


From: Chip
Subject: Re: sample from snippets library doesn't seem to work correctly?
Date: Wed, 11 Feb 2009 14:53:40 -0700
User-agent: Thunderbird 2.0.0.19 (Windows/20081209)

Mats Bengtsson wrote:
Chip wrote:
One thing I find odd, probably because I don't fully understand, is this: I have a .ly file that has 10 \score blocks. I place print-all-headers = ##t in the \paper block so I can define sub pages headers seperately from the top level \book headers. I first define: title, subtitle and instrument headers at the top level \book, then do a page break, that gives me a cover page. On the subsequent pages of music I define title and subsubtitle. I also define a blank subtitle = "" which blanks out the subtitle from the \book top level. And I define instrument = "" but it does not blank out the instrument from the top level \book headers. Seems odd that one will override the top level header and one will not. I am guessing there is probably an override that I can use to have the instrument header not appear on the subsequent pages?
thanks,
It's not so odd if you realize what is handled at the book level and what is handled at the score level. When you set print-all-headers=##t, you tell LilyPond to typeset the full title at the score level, i.e. for each single score. However, the page heading and foot is still handled at the book level, so it only takes into account the settings that are done at the book level, not the ones that are done within each score block (which I guess is what you do when you set instrument = "").

   /Mats
This is something I am currently struggling with - my title page has -
\book {
\header {
title =
subtitle =
instrument = }

Then in my score blocks -
\score {
... notes...
\header {
title = "Hooked"
subtitle = ##f
subsubtitle = "(EMaj - F#m)"
instrument = ##f }.

On the resulting .pdf's the title page is fine, the subsequent pages all have the instrument name (which is set to false so it shouldn't appear on the subsequent pages) at the top of the page, then below that is the title "Hooked" in the example above, then below that the subsubtitle stuff. Notice the subtitle is correctly turned off but the instrument is not turned off. Am I missing something obvious here?
--
Chip

The source code is included below -
====================
\version "2.12.1"
\layout {  indent = #0
 line-width = #175
 ragged-last = ##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
 #(set-global-staff-size 18)
 \override MultiMeasureRestNumber #'stencil = ##f
}
\paper {
#(define page-breaking ly:minimal-breaking)
 between-system-space = 0.5\cm
 between-system-padding = #0.1
 ragged-bottom=##f
 ragged-last-bottom=##f
 left-margin = 20\mm
 page-limit-inter-system-space = ##t
 page-limit-inter-system-space-factor = 1.5
 print-all-headers = ##t
}
\book {
 \header {
title = \markup \center-column { " " " " " " " " " " " " " " " " \fontsize #7.5 "Ras Jammie" " " " " " "} subtitle = \markup \bold \italic \center-column { \fontsize #6.5 "Thin Line" " " " "} instrument = \markup \center-column { \fontsize #3.5 \italic "Tenor Sax" } }
\pageBreak
\score {
\relative c'' { \time 4/4 \global
\include "SaxHooked.ly"
   }
   \header {title = "Hooked"
       subtitle = ##f
       subsubtitle = "(EMaj - F#m)"
           instrument = ##f}
 }
\pageBreak
 \score {
\relative c'' { \time 4/4 \global
\include "SaxDaddy.ly"
   }
   \header {title = "Daddy Won't Mind"
       subtitle = ##f
            subsubtitle = "FMaj - Gm"
        instrument = ##f}
 }
\pageBreak
 \score {
\relative c'' { \time 4/4 \global
\include "SaxSometimey.ly"
   }
   \header {title = "Sometimey People"
       subtitle = ##f
            subsubtitle = "(Cm - Fm)"
        instrument = ##f}
 }
\pageBreak
\score {
\relative c'' { \time 4/4 \global
\include "SaxBlack.ly"
   }
   \header {title = "Black Day"
       subtitle = ##f
            subsubtitle = "(Em - GMaj)"
            instrument = ##f}
 }
\pageBreak
\score {
\relative c'' { \time 4/4 \global
\include "SaxJah.ly"
   }
   \header {title = "Jah Son"
       subtitle = ##f
            subsubtitle = "(Em - F#m)"
            instrument = ##f}
 }
\pageBreak
\score {
\relative c'' { \time 4/4 \global
\include "SaxRunaway.ly"
   }
   \header {title = "Runaway Slave"
       subtitle = ##f
            subsubtitle = ""
            instrument = ##f}
 }
\pageBreak
\score {
\relative c'' { \time 4/4 \global
\include "SaxAnxiety.ly"
   }
   \header {title = "Anxiety Attack"
       subtitle = ##f
            subsubtitle = ""
            instrument = ##f}
 }
\pageBreak
\score {
\relative c'' { \time 4/4 \global
\include "SaxFroggy.ly"
   }
   \header {title = "Froggy"
       subtitle = ##f
            subsubtitle = ""
            instrument = ##f}
 }
\pageBreak
\score {
\relative c'' { \time 4/4 \global
\include "SaxMore.ly"
   }
   \header {title = "More"
       subtitle = ##f
            subsubtitle = ""
            instrument = ##f}
 }
}




reply via email to

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