Re: Instruction text between header and staff

2021-10-04 Thread Kieren MacMillan
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: kie...@kierenmacmillan.info




Re: Instruction text between header and staff

2021-10-04 Thread Kieren MacMillan
Hi Erika,

> 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.)

There are multiple ways you can do this.


1. Use \vspace with your markup:

%%%  SNIPPET 1 BEGINS
\version "2.18.2"

\header {
  title = "A Piece"
  composer = "Someone"
}

\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 \vspace #2
\markup {
  Here are some instructions on how you should play my piece.
}
\markup \vspace #2

\score {
  \new Staff { \first }
  \layout { indent = 0.0 }
}
%%%  SNIPPET 1 ENDS


2. Use the spacing parameters:

%%%  SNIPPET 2 BEGINS
\version "2.18.2"

\header {
  title = "A Piece"
  composer = "Someone"
}

\paper {
  scoreTitleMarkup = \markup {
 \fill-line {
  \null
  \fontsize #4 \bold \fromproperty #'header:piece
  \fromproperty #'header:opus
}
  }
  markup-markup-spacing.padding = 8
  markup-score-spacing.padding = 8
}

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 }
}
%%%  SNIPPET 2 ENDS


There are other solutions, of course, but hopefully one of these puts you on 
the right track.

Hope this helps!
Kieren.


Kieren MacMillan, composer (he/him/his)
‣ website: www.kierenmacmillan.info
‣ email: kie...@kierenmacmillan.info




Re: Instruction text between header and staff

2021-10-04 Thread Knute Snortum
On Mon, Oct 4, 2021 at 8:13 AM Erika Pirnes  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



Instruction text between header and staff

2021-10-04 Thread Erika Pirnes
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