Il giorno gio 14 lug 2016 alle 10:58, Federico Bruni
<f...@inventati.org> ha scritto:
Il giorno dom 3 lug 2016 alle 14:57, Simon Albrecht
<simon.albre...@mail.de> ha scritto:
Let me explain better.
In a directory I have single files for each song. I want to compile
each of them as a standalone PDF. But I also want to include them
in a master file which acts as an anthology book.
So the master file already works fine, because the \header is in
the top level.
The problem is with each single song, because the songs use
\bookpart.
Well, I suppose you need to find a clever way of setting pdftitle in
the wrapper files for the single songs. This kind of things can be
really annoying and convoluted…
This is going to cause me headaches. I've always fought with this
sort of things in LilyPond.
The problem is that I cannot include music variables within a
\bookpart block.
I suspect that what I want to achieve is not possible.
See attached examples.
The -part.ly files compile fine, but the Anthology will fail. I see
why it's failing but I cannot find other ways.
_______________________________________________
Ok, I found a solution:
I use named variables specific for each piece (compositionOneMusic,
compositionTwoMusic), so that I can include the .ily files at top
level, in the anthology book file, without any clashing (I was used to
set the same variable names, e.g. upper and lower, because my file
structure avoided this clashing).
Attached files explain better than my words.
\version "2.19.45"
\header {
title = "Composition 2"
composer = "John Doe"
pdfauthor = "John Doe"
}
\include "composition-2.ily"
\compositionTwoScore
\version "2.19.45"
compositionOneMusic = \relative {
c4 d e2 |
}
compositionOneScore = \score {
\new StaffGroup <<
\new Staff { \clef "treble_8" \compositionOneMusic }
\new TabStaff { \clef "moderntab" \new TabVoice \compositionOneMusic }
>>
\layout { indent = 0 }
}
\version "2.19.45"
compositionTwoMusic = \relative {
d'4 e g2 |
}
compositionTwoScore = \score {
\new StaffGroup <<
\new Staff { \clef "treble_8" \compositionTwoMusic }
\new TabStaff { \clef "moderntab" \new TabVoice \compositionTwoMusic }
>>
\layout { indent = 0 }
}
\version "2.19.45"
\include "composition-1.ily"
\include "composition-2.ily"
\book {
\header {
composer = "John Doe"
pdfauthor = "John Doe"
title = "John Doe Anthology"
}
\bookpart {
\header {
title = "Composition 1"
composer = "John Doe"
}
\compositionOneScore
}
\bookpart {
\header {
title = "Composition 2"
composer = "John Doe"
}
\compositionTwoScore
}
}
\version "2.19.45"
\header {
title = "Composition 1"
composer = "John Doe"
pdfauthor = "John Doe"
}
\include "composition-1.ily"
\compositionOneScore
_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond