If you read "How LilyPond files work" in the Tutorial, you will learn that
if you have something like
\relative b' { \set Staff.instrumentName = " 2 " \key c \major \override
Staff.TimeSignature #'style = #'()
d2 c b r a4 b c a g2 r b4 c d b a b c a b c d b a b c a d2 c b r a4 b c
a g2 r \bar "||"
}
in your file, then it's actually equivalent to
\score{
\relative b' { \set Staff.instrumentName = " 2 " \key c \major \override
Staff.TimeSignature #'style = #'()
d2 c b r a4 b c a g2 r b4 c d b a b c a b c d b a b c a d2 c b r a4 b c
a g2 r \bar "||"
}
}
This, of course, means that if you want to include a \header{...} for
your specific
score, then it has to be included within the same \score{...} block as
the actual music.
Also, I forgot to tell you one detail, which is described in section
"Creating titles",
namely that by default, only the piece and opus headers are printed for
each
separate score. Note also that your attempt to get rid of the bar
numbering fails
completely. Here's a modified version of your first example that hopefully
is closer to what you want:
\version "2.10.0"
\paper{
printallheaders=##t
bottom-margin = 3\cm
}
\layout{
\context{
\Score
\remove "Bar_number_engraver"
}
}
\score{
\relative b' { \set Staff.instrumentName = " 1 " \override
Staff.TimeSignature #'style = #'() \key g \major
g a b c d d d d g, a b c d2 d \break g,4 a b c d d d d d c b a g2 g \bar
"||"
}
\header{
title = "Ist ein Wolf in'n Brunnen Gefallen"
arranger = " "
}
}
\score{
\relative b' { \set Staff.instrumentName = " 2 " \key c \major \override
Staff.TimeSignature #'style = #'()
d2 c b r a4 b c a g2 r b4 c d b a b c a b c d b a b c a d2 c b r a4 b c
a g2 r \bar "||"
}
\header{
title = "Summ, summ, summ"
arranger = " "
}
}
/Mats
Manuel wrote:
I wrote an instruction for the bottom margin like this:
\version "2.10.0"
\paper{
bottom-margin = 3\cm
}
and it seems to work, only the actual bottom margin is bigger than the
3 cm specified.
Concerning the titles for the pieces, I don't get it. I tried
different ways, like this one:
\version "2.10.0"
\score{
\remove "Bar_number_engraver"
\header{
title = "Ist ein Wolf in'n Brunnen Gefallen"
arranger = " "
}
}
\relative b' { \set Staff.instrumentName = " 1 " \override
Staff.TimeSignature #'style = #'() \key g \major
g a b c d d d d g, a b c d2 d \break g,4 a b c d d d d d c b a g2 g
\bar "||"
}
\score{
\remove "Bar_number_engraver"
\header{
title = "Summ, summ, summ"
arranger = " "
}
}
\relative b' { \set Staff.instrumentName = " 2 " \key c \major
\override Staff.TimeSignature #'style = #'()
d2 c b r a4 b c a g2 r b4 c d b a b c a b c d b a b c a d2 c b r a4 b
c a g2 r \bar "||"
}
but evidently it's not right.
I also tried to separate more the last staff of the first piece from
the first staff of the second:
\version "2.10.0"
\layout
{
\context {
\Score
\remove "Bar_number_engraver"
}
}
\relative b' { \set Staff.instrumentName = " 1 " \override
Staff.TimeSignature #'style = #'() \key g \major
g a b c d d d d g, a b c d2 d \break g,4 a b c d d d d d c b a g2 g
\bar "||"
}
\overrideProperty
#"Score.NonMusicalPaperColumn"
#'line-break-system-details
#'((fixed-alignment-extra-space . 15))
\relative b' { \set Staff.instrumentName = " 2 " \key c \major
\override Staff.TimeSignature #'style = #'()
d2 c b r a4 b c a g2 r b4 c d b a b c a b c d b a b c a d2 c b r a4 b
c a g2 r \bar "||"
}
but no change took place.
Manuel
Am 01/12/2006 um 11:02 schrieb Mats Bengtsson:
Right! If you specify one or more header blocks at the top level of the
file, the last one will be used globally for all the scores in the file.
If you want specific titles for each score, include the header block
within the corresponding \score{...} block:
\score{
...
\header{
...
}
}
\score{
...
\header{
...
}
}
...
If you want to set the time signature style once and for all for all
the scores, do
\layout{
...
\context{
\Staff
\override TimeSignature #'style = #'()
}
}
see "Changing context default settings" in the manual for more
information.
/Mats
Manuel wrote:
Am 01/12/2006 um 10:21 schrieb Mats Bengtsson:
Manuel wrote:
Since you don't say what error message you get or include your
file in the email,
it's impossible to provide any help here.
It says "gescheiterte Dateien".
In that case, I guess that you also get some more warning or error
message
above that line, which provide more specific information. Please
include the
full log.
Right, I will do so, no accusation and many thanks to you. Right
now, however, I don't get any error massage at all: I wrote the
title for the second piece and it appeared as the title for the
first one. Here is the example:
\version "2.10.0"
\layout
{
\context {
\Score
\remove "Bar_number_engraver"
}
}
\header {
title = "Ist ein Wolf in'n Brunnen Gefallen"
arranger = " "
}
\relative b' { \set Staff.instrumentName = " 1 " \override
Staff.TimeSignature #'style = #'() \key g \major
g a b c d d d d g, a b c d2 d \break g,4 a b c d d d d d c b a g2 g
\bar "||"
}
\header {
title = "Summ, summ, summ"
arranger = " "
}
\relative b' { \set Staff.instrumentName = " 2 " \key c \major
\override Staff.TimeSignature #'style = #'()
d2 c b r a4 b c a g2 r b4 c d b a b c a b c d b a b c a d2 c b r a4
b c a g2 r \bar "||"
}
Manuel
--=============================================
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44 STOCKHOLM
Sweden
Phone: (+46) 8 790 8463
Fax: (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=============================================
--
=============================================
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44 STOCKHOLM
Sweden
Phone: (+46) 8 790 8463
Fax: (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=============================================
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user