Forrest logo
back to the lilypond tool

lilypond:tldr:ddea9

lilypond: Compile the specified file, and also specify the output filename.
$ lilypond --output=${path-to-output_file} ${path-to-input_file}
try on your machine

This command is used to convert a LilyPond file (a file with the extension .ly) into a PDF or other output format. Here is an explanation of the command and its options:

  • lilypond: This is the command to run the LilyPond program.
  • --output=${path-to-output_file}: This option is used to specify the path and name of the output file that will be created. ${path-to-output_file} should be replaced with the desired path and name of the output file. For example, if you want the output file to be named "output.pdf" and be saved in the current working directory, you can use --output=output.pdf.
  • ${path-to-input_file}: This is the path and name of the input LilyPond file that you want to convert. It should be replaced with the actual path and name of the input file.

By running this command in the command line or terminal, LilyPond will process the input file and generate the specified output file according to the given options.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the lilypond tool