Jean - The part I care about is whether it starts on a left or right hand page.
What I am doing is the following: - Compile lilypond score - Output meta data to a CSV file (I'm using scheme to write out variables like the title and such. This is where I would like to add the metadata about even/odd or right/left first page) - Import the CSV into Affinity publisher to generate the cover from a template - using PDFTK to merge the PDF's And this works great. However, what I need to know is if the first couple of pages should go Cover -> First page of score OR Cover -> Blank page -> first page of score depending on if the first page of the score is a "left" or "right" page. I know that I can tell lilypond to force a first page number, but would rather allow the layout engine to be more free. And obviously, opening the file and looking at the page number is trivial, but I hope to just automate this. Let me know if that answers your questions! Thanks! -kwb > On Sep 23, 2023, at 11:55 AM, Jean Abou Samra <j...@abou-samra.fr> wrote: > >> >> I'm trying to use the `book-first-page` scheme function to write the first >> page to a file in order to do some automated score processing. >> `book-first-page` takes the layout and props arguments, however, I'm having >> a hard time wrapping my head around accessing the layout and props >> properties without using a \markup command. >> >> Does anyone have any guidance on this and/or a better way to get the first >> page programmatically. Thank you! > > > By "write the first page", do you mean "write the first page as a PDF" or > similar, or "write the page number of the first page"? Because > book-first-page merely returns the *number* of the first page of the book. > > Could you explain what you're trying to do? The answer largely depends on > what you actual goal is.