Hi Trevor,

Really? Makes no difference at all in my MWE. Even afer correcting for the
'=' sign in the tweak. Did you try it? What do I not see a result?

Andrew



On Thu, 10 Jan 2019 at 23:35, Trevor <t.dani...@treda.co.uk> wrote:

>
>
> ------ Original Message ------
> From: "Andrew Bernard" <andrew.bern...@gmail.com>
> To: "lilypond-user Mailinglist" <lilypond-user@gnu.org>
> Sent: 10/01/2019 12:12:19
> Subject: Make dynamic script with long text
>
> 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 {}
> }
> %======
>
>
> Here's one way:
>
> ppecresc = \tweak DynamicText.self-alignment-X #LEFT
>   \tweak DynamicText.right-padding = -10
> #(make-dynamic-script ppecrescText)
>
> Trevor
>
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to