[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Multiple scores in a single document
From: |
Thomas Morley |
Subject: |
Re: Multiple scores in a single document |
Date: |
Fri, 25 Sep 2015 03:15:46 +0200 |
2015-09-25 2:46 GMT+02:00 T. Michael Sommers <address@hidden>:
> On 9/22/2015 2:06 PM, Simon Albrecht wrote:
>>
>> On 22.09.2015 19:53, T. Michael Sommers wrote:
>>>
>>> Is it possible to have multiple independent scores in a single document,
>>
>>
>> Of course it’s possible: just use more than one \score {} block.
>>
>>> with each score having its own title, composer, arranger, and so
>>> forth? From what I can see, if a score has those items in its header,
>>> they are ignored.
>>
>>
>> A score can contain its own \header {} block, but settings from a
>> top-level \header {} block will override those specific to one score. So
>> you need to remove the respective definition from the top-level header
>> block in order to change it score-wise.
>> See
>>
>> <http://lilypond.org/doc/v2.18/Documentation/notation/creating-titles-headers-and-footers>
>> for comprehensive documentation.
>
>
> It doesn't appear to work that way, although you'd think it would. See this
> snippet:
> http://www.lilypond.org/doc/v2.18/Documentation/snippets/text#text-demonstrating-all-headers
>
> --
> T.M. Sommers -- address@hidden -- ab2sb
>
Looks like best would be to redefine scoreTitleMarkup:
\paper {
scoreTitleMarkup = \markup {
\override #'(baseline-skip . 3.5)
\column {
\fill-line { \fromproperty #'header:dedication }
\override #'(baseline-skip . 3.5)
\column {
\fill-line {
\huge \larger \larger \bold
\fromproperty #'header:title
}
\fill-line {
\large \bold
\fromproperty #'header:subtitle
}
\fill-line {
\smaller \bold
\fromproperty #'header:subsubtitle
}
\fill-line {
\fromproperty #'header:poet
{ \large \bold \fromproperty #'header:instrument }
\fromproperty #'header:composer
}
\fill-line {
\fromproperty #'header:meter
\fromproperty #'header:arranger
}
\fill-line {
\fromproperty #'header:piece
\fromproperty #'header:opus
}
}
}
}
}
\score {
\relative c'' { c1 | c | c | c }
\header {
title = "localtitle"
subtitle = "localsubtitle"
composer = "localcomposer"
arranger = "localarranger"
instrument = "localinstrument"
meter = "localmetre"
opus = "localopus"
piece = "localpiece"
poet = "localpoet"
}
}
\score {
\relative c'' { c1 | c | c | c }
\header {
title = "localtitle-2"
subtitle = "localsubtitle-2"
composer = "localcomposer-2"
arranger = "localarranger-2"
instrument = "localinstrument-2"
meter = "localmetre-2"
opus = "localopus-2"
piece = "localpiece-2"
poet = "localpoet-2"
}
}
Though there is something strange with the snippet you linked to.
Per default LilyPond does not support header-fields like:
metre
texidoc
enteredby
source
Cheers,
Harm
Re: Multiple scores in a single document, Mats Bengtsson, 2015/09/25