[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Creating multi-score books
From: |
karl |
Subject: |
Re: Creating multi-score books |
Date: |
Thu, 16 Feb 2017 13:55:39 +0100 (CET) |
Don Gingrich:
...
> What I'd like to create is:
>
> <title page in TeX>
>
> <text page discussing song 1 in TeX>
>
> <score of song one in ly >
>
> <text page discussing song 2 in TeX>
>
> <score of song 2 in ly >
...
I do this regulary. You usually use lilypond-book, but I got tired of
all thoose lily-xxxx files, I couldn't use that in makefiles, e.g.
So, I made my own version and have ever since used that.
...
> \header{
> title = "some silly thing"
> composer = "Not Mozart"
> }
> {
> <<
...
You can do the headers either in lilypond or latex. I do them in latex,
when latex is involved, since I usually also include some text after
the header.
> As putting a bunch of individual scores together into a book may
> be a more or less common task, a good template would be brilliant
> and potentially useful for others
My lilypond/latex code are in:
http://turkos.aspodata.se/git/musik/
Examples of my work is:
http://turkos.aspodata.se/choir/osthammar/mozart/requiem.pdf
http://turkos.aspodata.se/choir/osthammar/mozart/cover.pdf
http://turkos.aspodata.se/git/musik/WAMozart/requiem/
http://turkos.aspodata.se/noter/victoria/o_quam_gloriosum/motet/all.pdf
http://turkos.aspodata.se/git/musik/TomasLuisdeVictoria/o_quam_gloriosum/motet/
Let's dissect the motet example.
The entry file is all.tex, it is a usual latex file. To get hold of what
lilypond produces I do:
\input{A-systems.tex}
for scores, and to include smaller music fragments I do:
\includegraphics{sign-1.eps}
To make latex and lilypond work together, I use the Makefile, it has
%.lyi: %.ly
echo '\include' \"$(INC)/I.ly\" > $@
echo '\include' \"$<\" >> $@
%.eps %-systems.tex: %.lyi
rm -f $(patsubst %.ly,%,$<)-*.eps
$(LP) --ps -dbackend=eps $<
$(BIN)lilypond-psfonts $*.psfonts $(patsubst %.lyi,%,$<).eps
The lyi thing is just to include
\include "lilypond-book-preamble.ly"
\include "../include/choirbook.ly"
The "lilypond-book-preamble.ly" and "$(LP) --ps -dbackend=eps $<" make
lilypond work in "lilypond-book mode" so I get the files
A-1.eps ... A-9.eps A-systems.tex etc.
If you run lilypond-book, thoose files would be named
lily-<some number>.yyy instead, but since you can predict their names
you can include them directly instead of going the way around
lilypond-book. The thing missing from lilypond-book though, is that
you must manually match the line length for your lilypond files and
latex for full width music:
$ grep line-width ../include/choirbook.ly
line-width = 153 \mm
$ grep textwidth all.tex
\setlength{\textwidth}{155mm}
Regards,
/Karl Hammar
-----------------------------------------------------------------------
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57