Question:
Is there a way to change how the score title appears based on whether it’s on an odd or even page?
Given:
% --- paper.ily
\paper {
scoreTitleMarkup = \markup \column {
\fill-line {
\box \fromproperty #'header:order
\bold \fromproperty #'header:title
\null
}
\fill-line {
\null
\italic \fromproperty #'header:author
}
}
}
% --- score.ily
\score {
<<
\new Staff \music
>>
\header {
title = \title
order = \order
author = \author
}
}
% --- compile.ly
title = "Good Afternoon"
order = "1"
author = "Santa"
music = {
% ...
}
\include "./score.ily"
title = "Good Evening"
order = "2"
author = "Elves"
music = {
% ...
}
\include "./score.ily"
title = "Good Night"
order = "3"
author = "Truman"
music = {
% ...
}
\include "./score.ily"
Result:
Contrived Example:
(Notice the order
and author
are on reversed sides on the right-hand page.)
Known Failures:
- Unless I am doing something wrong,
\if
and\unless
conditions only work with the[even|odd][Header|Footer]Markup
variables, affecting the top and bottom of the page — not the score. Therefore, the first thing I thought of that would be awesome to work… won’t work.