lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Instruction text between header and staff


From: Knute Snortum
Subject: Re: Instruction text between header and staff
Date: Mon, 4 Oct 2021 09:31:52 -0700

On Mon, Oct 4, 2021 at 8:13 AM Erika Pirnes <erika.pirnes@hotmail.com> wrote:
>
> 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.
>
> (Another minor issue I had was the spacing between the title and the header. 
> I wanted a bit more space in between, which I was able to obtain by adding an 
> arranger field but leaving it blank. If someone has a better solution to 
> suggest, I'd be happy to hear that as well.)
>
> Here's my minimal example:
>
> \version "2.18.2"
>
> \header {
>   title = "A Piece"
>   composer = "Someone"
>   arranger = " "
> }
>
> \paper {
>   scoreTitleMarkup = \markup {
>      \fill-line {
>       \null
>       \fontsize #4 \bold \fromproperty #'header:piece
>       \fromproperty #'header:opus
>     }
>   }
> }
>
> first = \relative c''{\repeat unfold 32 {c4}}
>
> \header {piece = "I"}
>
> \markup {
>   Here are some instructions on how you should play my piece.
> }
>
> \score {
>   \new Staff {\first}
>   \layout {indent = 0.0}
> }
>
>
> Thank you,
> Erika

Well, you could attach the markup to the first note...

%%%
first = \relative c''{
  c4^\markup {
    Here are some instructions on how you should play my piece.
  }
  c c c
  \repeat unfold 28 {c4}
}
%%%

--
Knute Snortum



reply via email to

[Prev in Thread] Current Thread [Next in Thread]