Re: finding first page of score in scheme

2006-06-30 Thread Graham Percival
Nicolas Sceaux wrote: Graham Percival <[EMAIL PROTECTED]> writes: But doesn't lilypond know when it's compiling a new \score ? I guess I don't know enough about how \books are produced. This code (lyoutput-def-lookup layout 'first-page-number) This property is entered by the user, or defaul

Re: finding first page of score in scheme

2006-06-29 Thread Nicolas Sceaux
Graham Percival <[EMAIL PROTECTED]> writes: > Nicolas Sceaux wrote: >> Graham Percival <[EMAIL PROTECTED]> writes: >> >>> I'd like to display something in the footer of the first (and last) >>> pages of each score in a book. >>> >> You may have to hack the function that builds the pages (the >> p

Re: finding first page of score in scheme

2006-06-29 Thread Graham Percival
Nicolas Sceaux wrote: Graham Percival <[EMAIL PROTECTED]> writes: I'd like to display something in the footer of the first (and last) pages of each score in a book. You may have to hack the function that builds the pages (the page-breaking function set in the \paper block). See scm/layout-pag

Re: finding first page of score in scheme

2006-06-28 Thread Nicolas Sceaux
Graham Percival <[EMAIL PROTECTED]> writes: > I'd like to display something in the footer of the first (and last) > pages of each score in a book. > > My current thought is to create a function (called at the beginning of > each score) that records the page number into some global variable(s), > a

finding first page of score in scheme

2006-06-27 Thread Graham Percival
I'd like to display something in the footer of the first (and last) pages of each score in a book. From ly/title-init.ly I see the first-page and last-page functions: #(define (first-page layout props arg) (if (= (chain-assoc-get 'page:page-number props -1) (ly:output-def-lookup lay