I used the following code for page numbering and copyright formatting in lilypond --version 2.20.0
:
pagenumcol = \markup {
\column {
\vspace #0.5
\fromproperty #'page:page-number-string
}
}
copyrightcol = "My Copyright file"
\paper {
ragged-right = ##f
page-breaking = #ly:page-turn-breaking
oddHeaderMarkup = \markup \null
evenHeaderMarkup = \markup \null
oddFooterMarkup = \markup {
\copyrightcol
\on-the-fly #print-page-number-check-first
\pagenumcol
}
evenFooterMarkup = \markup {
\on-the-fly #print-page-number-check-first
\pagenumcol
\copyrightcol
}
}
Now with lilypond --version 2.24.1
I get the following error:
GNU LilyPond 2.24.1 (running Guile 2.2)
Processing `First-Piano-two-hand-Exercises.ly'
Parsing...
./global-files/paper.ily:19:18: error: Guile signaled an error for the expression beginning here
\on-the-fly #
print-page-number-check-first
Unbound variable: print-page-number-check-first
./global-files/paper.ily:19:17: error: wrong type for argument 1. Expecting procedure, found #<unspecified>
\on-the-fly
#print-page-number-check-first
ERROR: In procedure ly:parse-file:
In procedure reverse!: Wrong type argument in position 1: (#<unspecified> . #f)
Does anyone know how to fix this? A simple convert-ly
run did not do :-(
\on-the-fly
being depreciated on the 2.24 Changes page.\if
or\unless
instead of\on-the-fly
, both not working with#print-page-number-check-first
. Guess the last one has to be replaced too... :-/convert-ly
correctly. For me, it converts this code to correct LilyPond 2.24 code.\version NUMBER
!!! Mypaper-file
is an inlcuded.ily
file that does not have a version number by default. Canconvert-ly
follow files linked with the\include
command?\version
numbers in all included files (which I would recommend), or runconvert-ly
with--from 2.20.0
to override the\version
detection logic.