Frederic Dannen wrote:
Is there also a way to supress the first page number, and move the numbers to the outer edge?

For that you have to get involved with http://lilypond.org/doc/v2.12/Documentation/user/lilypond/Custom-titles and how the source code in titling-init.ly does these things.

These (two-hand) defaults for oddHeaderMarkup and evenHeaderMarkup are a suitable starting point for Primo and Secondo respectively. Note that with this numbering trick for four-hand we do not want the original odd/even to influence our page headers; so we set our evenHeaderMarkup to false and use only oddHeaderMarkup.

The attached four-hand.ly should get you started.

Cheers, Robin
\version "2.12.3"

#(define-markup-command (four-hand-page layout props offset) (number?)
  (let* (
    (two-hand (chain-assoc-get 'page:page-number-string props))
    (four-hand (number->string (+ offset (* 2 (string->number two-hand))))))
    (interpret-markup layout props four-hand)))


mus = { c'1 \pageBreak c'1 \pageBreak c'1 }

\header { title = "Fascinating Rhythm" }

\book{
  \paper { 
    oddHeaderMarkup = \markup
    \fill-line {
      " "
      \on-the-fly #not-first-page \line { \fromproperty #'header:title
      "(Primo)" }
      \on-the-fly #print-page-number-check-first \four-hand-page #1
    }
    evenHeaderMarkup = ##f
  }
  \score { 
    \new PianoStaff \with { instrumentName = "Primo" }
  << \mus \mus >> 
  }
}

\book{
  \paper { 
    oddHeaderMarkup = \markup
    \fill-line {
      \on-the-fly #print-page-number-check-first \four-hand-page #0
      \on-the-fly #not-first-page \line { \fromproperty #'header:title
      "(Secondo)" }
      " "
    }
    evenHeaderMarkup = ##f
  }
  \score { 
    \new PianoStaff \with { instrumentName = "Secondo" }
  << \mus \mus >> 
  }
}
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to