lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lilypond "preprocessor"?


From: Michael Werner
Subject: Re: lilypond "preprocessor"?
Date: Sun, 10 Dec 2023 08:46:26 -0500

Hi Stef,

On Sat, Dec 9, 2023 at 11:07 PM Stefano Antonelli <santonelli@algosolutions.com> wrote:
Any other options for getting the header block from an included file?

 I don't know if this'll be directly usable in your use case, but I do something like this with most of the music I engrave. The way I handle this is my song.ly would be something like:

myHeaders =  \header {
% author and stuff
}

theMusic = new DrumStaff {
% the music
}

And then I would have anotherFile.ly containing something like:

\include "song.ly"

\book {
  \myHeaders
  \score {
    \theMusic
  }
}

I'm not at all familiar with ly2video, so I really have no idea if this'll be directly useful to you. But for getting the headers from an included file, this is how I do it with nearly all the music I engrave. Maybe it can serve as a starting point.
--
Michael


reply via email to

[Prev in Thread] Current Thread [Next in Thread]