Hi Juan,

> I'm currently working on a quartet and want to know your opinion about the 
> tempo marks that may have a dashed line (i.e. **accel.**). My dilemma is as 
> follows (take into account that I will need to output not only the score but 
> also the parts): I could use the text span engraver to print such a line, but 
> I will have to do so for the four instruments, given that parts must have the 
> tempo indication; but this would print four times the same line in the score, 
> where only the upmost line is needed. In the inverse sense, I could only use 
> the line in the upmost instrument, but parts will not get the tempo change. 
> So it seems the text span is not the best option.
> 
> The other option I'm thinking about is to program my text editor to comment 
> and uncomment lines from the parts depending if I'm printing the parts or 
> including them in the score. But it would create an unnatural notation, not 
> to say is not really a "lilypond" solution.
> 
> The ideal solution would be the mix between the metronome mark engraver and 
> the text span engraver. But I don't have the scheme nor lilypond skills to 
> program something like that. What are your approaches to this kind of problem?

Seems like you’re asking two different questions:

1. Should markings like “accel.” [with a dashed line] be coded as a 
MetronomeMark or a TextMark?

2. How can marks be made to display in each part, but only once in the full 
score?


Here are my answers:

1. I believe a tempo indication should be coded as a MetronomeMark whenever 
possible; this is absolutely essential if the tempo indication contains any 
MIDI information. For text spanners, we have a hack due to Harm 
(https://gitlab.com/lilypond/lilypond/-/work_items/3176), but it’s definitely a 
feature request most of us would love to see implemented.

2. Have a global variable that contains the text spanner, and include it in 
each part but only once in the score:

%%%  SNIPPET BEGINS
\version "2.27.1"

global = {
  \time 4/4
  \once \override TextSpanner.bound-details.left.text = \markup { \upright 
"rit." }
  s1\startTextSpan
  s1\stopTextSpan
}

partA = { c''4 4 4 4 1 }
partB = { g'4 4 4 4 1 }
partC = { e'4 4 4 4 1 }
partD = { c'4 4 4 4 1 }

\markup \vspace #1
\markup "PART A"
\score {
   \new Staff << \global \partA >>
}

\markup \vspace #1
\markup "PART B"
\score {
   \new Staff << \global \partB >>
}

\markup \vspace #1
\markup "SCORE"
\score {
  <<
    \global
     \new Staff \partA
     \new Staff \partB
  >>
}
%%%  SNIPPET ENDS

Hope that helps!
Kieren.
__________________________________________________

My work day may look different than your work day. Please do not feel obligated 
to read or respond to this email outside of your normal working hours.


Reply via email to