Am 14.01.19 um 11:33 schrieb Craig Dabelstein:
Hi lilyponders,
Does anyone use a Rakefile for automating their lilypond engraving and
would be willing to share an example file that I could follow?
Hi Craig,
I don’t know anything about Ruby and Rakefiles but I’ve used Makefiles
some times. Attached you can find a Makefile that can build the full
score, single movements of full score, all parts, midis, and even audios
(.wav) from those midis using fluidsynth. The project contains the
following files:
% all .ily files are included in other files
global.ily % global definitions
global_partitur.ily % global definitions for full score
III.ily % definitions for the four movements
II.ily
I.ily
IV.ily
% .ly files are compiled
midiIII.ly
midiII.ly
midiI.ly
midiIV.ly
PartiturIII.ly % full score, third movement
PartiturII.ly
PartiturI.ly
PartiturIV.ly
Partitur.ly % full score, complete
Stimmen.ly % all parts, complete, uses \bookOutputName to make oboeI.pdf
etc.
Probably that setup and the Makefile are far from perfect but it works
for me ;)
HTH
Malte
.PHONY: all noten partitur partituren stimmen audio midi clean
LILY=lilypond -dno-point-and-click -I/home/malte/lily/includes
SFONT=/usr/share/sounds/sf2/FluidR3_GM.sf2
NOTEN=I.ily II.ily III.ily IV.ily
MIDIS=$(patsubst %.ily,%.midi,$(NOTEN))
WAVS=$(patsubst %.ily,%.wav,$(NOTEN))
partituren: PartiturI.pdf PartiturII.pdf PartiturIII.pdf PartiturIV.pdf
partitur: Partitur.pdf
all: noten audio
noten: partitur partituren stimmen
stimmen: oboeI.pdf
audio: $(WAVS)
midi: $(MIDIS)
clean:
rm -f *.wav *.midi *.pdf
Partitur.pdf: Partitur.ly $(NOTEN)
$(LILY) $<
Partitur%.pdf: Partitur%.ly $(NOTEN)
$(LILY) $<
oboeI.pdf: Stimmen.ly $(NOTEN)
$(LILY) $<
%.midi: midi%.ly %.ily
$(LILY) $<
%.wav: %.midi
fluidsynth -F$@ $(SFONT) $^
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user