[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Instruction text between header and staff
From: |
Kieren MacMillan |
Subject: |
Re: Instruction text between header and staff |
Date: |
Mon, 4 Oct 2021 12:37:29 -0400 |
p.s.
>> I'm trying to add some instruction text in my score. I would like to
>> position it between the header and the music, but I cannot seem to figure
>> out how to do this, as markup cannot be placed inside a score block. I also
>> tried taking the header out of the score block which still seemed to produce
>> the exact same result.
For this, just use a new header property, and define your scoreTitleMarkup
accordingly:
%%% SNIPPET 3 BEGINS
\version "2.18.2"
\header {
title = "A Piece"
composer = "Someone"
}
\paper {
scoreTitleMarkup = \markup \column {
\fill-line {
\null
\fontsize #4 \bold \fromproperty #'header:piece
\fromproperty #'header:opus
}
\vspace #2
\fromproperty #'header:instructions
\vspace #2
}
markup-markup-spacing.padding = 8
markup-score-spacing.padding = 8
}
first = \relative c'' { \repeat unfold 32 { c4 } }
\header {
piece = "I"
instructions = "Here are some instructions on how you should play my piece."
}
\score {
\new Staff { \first }
\layout { indent = 0.0 }
}
%%% SNIPPET 3 ENDS
Hope that helps!
Kieren.
________________________________
Kieren MacMillan, composer (he/him/his)
‣ website: www.kierenmacmillan.info
‣ email: kieren@kierenmacmillan.info