Using make-dynamic-script generally works well for me. But now I need to have "pp e cresc...". This is all well and good, except I would like the dynamic text to run across the span barlines. The following MWE shows what I have. The text shies away from the span barline and pushes things around. I want it to just overlay the bar line as though the line was not there.
As a small explanation, in this context the composer uses span barlines as 'beat lines' not bars. This is why the set Timing.measureLength is there. Because of this, I am aware that I may be having here a system that is far from the norm, and so trying to use make-dynamic-script in a context it was not conceived for, but I do wonder if anybody can help out. Perhaps I am missing something very simple.
I do want to use a dynamic and not just markup, as I get all the advantages of alignment and so on if it is a dynamic.
Andrew
%======
\version "2.19.82"
ppecrescText = \markup {
\normal-text \italic "pp e cresc ..."
}
ppecresc = \tweak DynamicText.self-alignment-X #LEFT
#(make-dynamic-script ppecrescText)
violinOne = {
\time 6/4
\set Timing.measureLength = #(ly:make-moment 1/4)
\override DynamicLineSpanner.outside-staff-padding = #5
\override Beam.positions = #'(-5 . -5)
g''8. d'''16_\ppecresc ~|
d'''4 ~
d'''
}
violinTwo = {
g'4 _~
g' _~
g'
}
\score {
\new GrandStaff
{
<<
\new Staff { \violinOne }
\new Staff { \violinTwo }
>>
}
\layout {}
}
%======