Hello Ralph,
the \halign aligns all markups and stacks them. If you want to align the
whole dynamic expression, make it a single markup with \line or \concat:
d4_\markup {
% negative value to right align, so that the forte is near the
corresponding note
\halign #-0.5 {
\whiteout \pad-markup #0.5 \line {
\dynamic {f} \italic {"meno"}
}
}
}
By the way, you might think of defining a dynamic script:
dynalign = {
% right align the forte near the corresponding note
\once \override DynamicText #'self-alignment-X = #0.8
}
menoF = #(make-dynamic-script (markup (#:whiteout #:pad-markup 0.5
#:line (#:normal-text(#:italic "meno") #:dynamic "f"))))
% later ...
{
\dynalign c4\menoF
}
I hope this helps.
Regards,
Jan-Peter
On 12.12.2010 16:46, Ralph Palmer wrote:
Greetings -
I'm running 2.12.3 under a slightly older version of Ubuntu.
The recent spanBar collision discussion came at a good time for me. I
was able to solve a collision of my own. However, I can't seem to
figure out how to get "mf, espr." to behave the way "meno f" does.
Here's a minimal example:
%%%%%%%%%% Begin Snippet %%%%%%%%%%%
\version "2.12.3"
A =
\relative c' {
\key c \major
\clef treble
\time 4/4
% Works as expected:
c'4 c c c |
d4_\markup {
\halign #0.5 {
\whiteout \pad-markup #0.5 {
\italic {"meno "} \dynamic {f}
}
}
}
d d d |
% Why doesn't this work?
c4 c c c |
d4_\markup {
\halign #0.5 {
\whiteout \pad-markup #0.5 {
\dynamic {f} \italic {"meno "}
}
}
}
d d d |
}
B=
\relative c' {
\key c \major
\clef treble
\time 4/4
d'4 d d d |
e4 e e e |
d4 d d d |
c4 c c c |
}
\score {
\new StaffGroup <<
\new Staff << \A >>
\new Staff << \B >>
>>
}
\layout {}
%%%%%%%%% End Snippet %%%%%%%%5
I'm attaching a .pdf of the output. Can anyone tell me what I'm doing
wrong, or steer me in the right direction?
Pondly,
Ralph
--
Ralph Palmer
Montague City, MA
USA
[email protected] <mailto:[email protected]>
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user