On 2024-09-20 04:39, ming tsang wrote:
Hi lilyponders,
the following code generates two files according to the log.
%%%
\paper {
output-filename = "my_special_output"
}
\book {
\paper {
output-suffix = "menuetto"
}
\score { \relative { c''4 d e f } }
}
\book {
\paper {
output-suffix = "scherzo"
}
\score { \relative { f''4 e d c } }
}
%%%
and the log as below:
%%
%{
Starting lilypond.exe 2.25.18 [Untitled]...
Processing
`C:/Users/Owner/AppData/Local/Temp/frescobaldi-00ou83l6/tmp2xammvvc/document.ly
<http://document.ly>'
Parsing...
Interpreting music...
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Converting to `my_special_output-menuetto.pdf'...
Interpreting music...
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Converting to `my_special_output-scherzo.pdf'...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Converting to `my_special_output.pdf'...
Success: compilation successfully completed
Completed successfully in 0.6".
%}
--
ming (lyndon) tsang
You may still use Frescobaldi with the following changes (I used
LilyPond version 2.24.0):
% \version "2.24.0"
% Replace version string with the version in use.
%{
Comment out the first paper block
\paper {
output-filename = "my_special_output"
}
%}
\book {
\paper {
\bookOutputName
"C:/Users/Owner/AppData/Local/Temp/frescobaldi-00ou83l6/tmp2xammvvc/Output/"
output-suffix = "menuetto"
}
\score { \relative { c''4 d e f } }
}
\book {
\paper {
\bookOutputName
"C:/Users/Owner/AppData/Local/Temp/frescobaldi-00ou83l6/tmp2xammvvc/Output/"
output-suffix = "scherzo"
}
\score { \relative { f''4 e d c } }
}
This should output to a subfolder of the original LilyPond source file.
The output may be directed to any folder that you choose, by changing
the bookOutputName.
HTH