Changes

Jump to navigation Jump to search
77 bytes added ,  14:39, 5 February 2023
updates for LilyPond 2.24
directory=lilytemp/, % directory for LilyPond's files
output={\externalfilterbasefile.pdf},
filtercommand={lilypond -dbackenddtall-page-formats=eps pdf -ddeletedseparate-intermediatepage-files formats=pdf -o"lilytemp/\externalfilterbasefile" "\externalfilterinputfile"}]
</texcode>
== Multi Page Filter Setup ==
This uses Lua and therefore only works with ConTeXt MkIVand up. It includes all pages of multi-page scores.
It doesn’t look into the complete (multi-page) PDF, but reads a "-system.count" auxiliary file written by LilyPond that contains the number of systems (pages) and includes the single-system PDFs.
directory=\LILYTEMP/,
output={\externalfilterbasefile.pdf},
filtercommand={lilypond -dbackenddtall-page-formats=eps pdf -ddeletedseparate-page-formats=pdf -intermediatedaux-files -o"\LILYTEMP/\externalfilterbasefile/" "\externalfilterinputfile"},]
</texcode>
<texcode>
\version "2.1824.20"
#(ly:set-option (quote no-point-and-click))
#(set-global-staff-size 14)
% --- start of setup for single-line output files ---
% from lilypond-book-preamble.ly
#(define default-toplevel-book-handler
print-book-with-defaults-as-systems )
}
}
 
</texcode>
Please look up the meaning of settings in [http://lilypond.org/doc/v2.2224/Documentation/web/manuals LilyPond’s great documentation]!
If you’d like to exchange measures like text width between ConTeXt and LilyPond, you could write those into the LilyPond buffer (see below).
For the time being this is left as an exercise to the user. ;)
Unfortunately you can’t define LilyPond’s text (lyrics) size with an absolute value, but only relative to staff size...
== Named Buffers ==
</texcode>
You must comment/delete the "line-width" setting in mysettings.ly, otherwise it doesn’t won’t work.
== Example ==
directory=\LILYTEMP/,
output={\externalfilterbasefile.pdf},
filtercommand={lilypond -dbackend=eps dtall-dincludepage-epsformats=pdf -fonts dseparate-dnopage-gsformats=pdf -loaddaux-fonts files -o"\LILYTEMP/\externalfilterbasefile" "\externalfilterinputfile"}]
\setuplayout[textwidth=6in] % matches line-width below
\definefontfeature[main][protrusion=quality, expansion=quality]
\definefontfamily[mainface][rm][Adobe Jenson Pro][features=main]

Navigation menu