Eluze <elu...@gmail.com> writes: > David Kastrup wrote >> >> You could suck the whole file into one score and get just the music back >> out again using ly:score-music, something like >> >> #(ly:score-music #{ \score { \include "xxx.ly" } #}) >> >> The music will already be "scorified" (repeat chords expanded, \\ >> replaced and other things), so you just need to add it to your book or >> whatever. > > is there any more information/documentation on these functions: > > ly:score-music > ly:score-header > or similar?
Not that I know of. > but there is no instruction how to use it, what may/should (or what > may not) be in the file that's included, in which context you can run > it … Well, any context where wrapping a \score around the file contents would deliver a working result. > the reason I'm asking is because there are a lot of constellations > with failures and I don't feel like finding out by trial and learning Sure: your files need to have a certain form to make this work (the problem was putting music and headers in the same file, being able to strip the headers on demand). Depending on your preferred form, you might need to suck into a \book rather than a \score. Or something else. If you need to be more flexible, take a look at Documentation/snippets/generating-whole-scores-also-book-parts-in-scheme-without-using-the-parser.ly which redefines several hooks and then is able to include a file of arbitrary structure (depending on its elements, the various different hooks get called). -- David Kastrup _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user