lilypond-user
[Top][All Lists]
Advanced

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

Re: PDF file gets "-1" appended


From: Jean Abou Samra
Subject: Re: PDF file gets "-1" appended
Date: Tue, 27 Jun 2023 11:20:05 +0200
User-agent: Evolution 3.48.3 (3.48.3-1.fc38)

Le lundi 26 juin 2023 à 16:39 -0700, Knute Snortum a écrit :
I've run into some odd behavior in LilyPond.  If your PDF-only is a score but your MIDI-only is a separate  book, the PDF file gets "-1" appended to the file name.  So for instance, with this code:

File name: test.ly

%%%
\version "2.25.6"

theNotes = { c'4 4 4 4 }

\score {
  \new Staff \theNotes
  \layout {}
}

\book {
  \score {
    \new Staff \theNotes
    \midi {}
  }
}
%%%

...you get two files, one called "test-1.pdf" and another called "test.midi".  The work-around is to use \bookoutputName and name one of the files something other than "test", but ideally I would want "test.pdf" and "test.midi" as file names. 


That is working as intended. Each book is compiled into a collection of one PDF output file and any number of MIDI output files, all with the same prefix, different books with different prefixes. If you want the same, you should simply remove the \book { ... } wrapping so that there is only one (implicit) book instead of two (one explicit and one implicit).

Best,
Jean

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

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