Le 30/04/2021 à 19:17, Rachel Green a écrit :
Hi,
For trios, I would like all the tempo markings to occur both above all parts
(as seen above the flute in the example below) but also right above the harp
part. When I add a tempo marking to the harp part, it places it above the flute
part, but when I add a regular markup to the harp part, the placement is not
correct (too far right). Any ideas how to have tempo markings in both locations
without manually adjusting the placement of each markup in the harp part?
Best,
Rachel
Hi,
You'd let the Metronome_mark_engraver operate in
the harp's Staff context in addition tothe Score
context, like this:
\version "2.22.0"
\language "english"
Markings = {
\tempo "Adagio"
s1
}
Flute = \relative c'' {
\clef treble
\key a \major
r1 |
r1 |
}
Viola = \relative c' {
\key a \major
\clef C
r1
fs4
}
Treble = \relative c' {
\clef treble
\time 4/4
\key a \major
r8
}
Bass = \relative c' {
\clef bass
\key a \major
f4
}
<<
\new Staff \with {
instrumentName = Flute
}
\Flute
\new Staff \with {
instrumentName = Viola
}
\Viola
\new GrandStaff \with {
instrumentName = Harp
}
<<
\new Staff \with {
\consists Metronome_mark_engraver
}
<< \Treble \Markings >>
\new Staff \Bass
>>
>>
Please see the documentation about adding and removing
engravers:
http://lilypond.org/doc/v2.22/Documentation/notation/modifying-context-plug_002dins
Best,
Jean