Hello list,
The issue I'm facing is that I might have a song.ly that contains:
\header {
% author and stuff
}
\theMusic = new DrumStaff {
% the music
}
ly2video can't work with this file. It needs to see a \score block so
it can add unfold repeats, layout, and midi. ly2video actually
'scrapes' the input file and writes everything except what it wants to
remove to a file for the next stage of processing.
I know I can run lilypond on song.ly and it will implicitly wrap it in
a \score block, but is that contained in an intermediate file somewhere
I can get access to?
I can create a separate file that looks like this:
\include "song.ly"
\score {
\theMusic
}
And let ly2video do the rest, but then it can't see the header block
anymore. So if there was alternatively an intermediate file with all
the includes, that could work too.
I didn't see a way to keep those kind of intermediate files in
lilypond's help. There is delete-intermediate-files which talks about
.ps files that I don't think I'm interested in.
Otherwise, I have to figure out how to parse includes and make sure
it's recursive.
Any other options for getting the header block from an included file?
Thanks,
Stef