Am Samstag, 16. Februar 2008 schrieb Ben Lewis:
> I've been typesetting a Telemann concerto for a baroque ensemble that I
> play in, and I've been having difficulties with actually producing more
> than one part from the same file (I need to input Violin 1,2 and Viola
> parts, since we only have hand-written ones.)
You can either use multiple \book {...} sections in one .ly file, which will
then create multiple pdfs, which are unfortunately numbered, e.g.
telemann-1.pdf, telemann-2.pdf, ... You can, however, also use
#(define output-suffix "VcB")
to define a suffix for the filename. A number will still be added, so the
filename for the \book(s) after this definition will be telemann-VcB-3.pdf,
etc. This will work only in lilypond >= 2.11, though.
Attached is an example to show you how this works. It creates five files for
VI, VII, Va, VcB and a FullScore.
The other way (e.g. if this file naming is too unflexible for you) is to
create separate input files and one file with all the music definitions. Each
file for VI, VI, etc. would include the file with the music definitions, and
you can write a makefile to build all five files with a simple make.
> My other problem comes from
> the fact that if I give multiple "piece" names in the \header section, only
> the last one is printed for all of them.
You need to add a separate score for each piece, and in each of these scores,
you can set the piece to something separate...
Cheers,
Reinhold
--
------------------------------------------------------------------
Reinhold Kainhofer, Vienna University of Technology, Austria
email: [EMAIL PROTECTED], http://reinhold.kainhofer.com/
* Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
* K Desktop Environment, http://www.kde.org, KOrganizer maintainer
* Chorvereinigung "Jung-Wien", http://www.jung-wien.at/
\version "2.10.5"
vI = \relative c'' { g8 a b4 c d | e2 e,8 e( g4) }
vII = \relative c' { c4 d e f | g f d c }
va = \relative c' { \clef "tenor" c2 c2~ | c1 }
vcb = \relative c { \clef "bass" c4 b a g | f g a c }
\header { title = "Multiple Books in one score" }
#(define output-suffix "VI")
\book {
\score {
\new Staff << \vI >>
}
\header {instrument = "Violino I"}
}
#(define output-suffix "VII")
\book {
\score {
\new Staff << \vII >>
}
\header {instrument = "Violino II"}
}
#(define output-suffix "Va")
\book {
\header {instrument = "Viola"}
\score {
\new Staff << \va >>
}
}
#(define output-suffix "VcB")
\book {
\header {instrument = "Violoncello e Basso"}
\score {
\new Staff << \vcb >>
}
}
#(define output-suffix "FullScore")
\book {
\header { }
\score {
\new StaffGroup <<
\new Staff = vISt <<
\set Staff.instrumentName = "Violino I"
\set Staff.shortInstrumentName = "V.I"
\vI >>
\new Staff = vIISt <<
\set Staff.instrumentName = "Violino II"
\set Staff.shortInstrumentName = "V.II"
\vII >>
\new Staff = vaSt <<
\set Staff.instrumentName = "Viola"
\set Staff.shortInstrumentName = "Va."
\va >>
\new Staff = vISt <<
\set Staff.instrumentName = \markup \column {"Violoncello" "e Basso"}
\set Staff.shortInstrumentName = "Vc/B."
\vcb >>
>>
}
}
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user