lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: changing the vertical position of Dynamics context


From: Kevin Barry
Subject: Re: changing the vertical position of Dynamics context
Date: Wed, 15 Apr 2020 21:45:33 +0100

Hi Edward,

In my opinion this would be better left as is, but if you want the
dynamics in the first system to move down they will have to "intrude"
into the lower staff. There's two ways I can see to do that:
- for the dynamics that you want to move, put them in the lower staff
instead of the Dynamics context
- use the override of last resort: extra-offset

Neither option is great. For all but the most simple examples I
personally don't use the Dynamics context between two staves for
exactly this reason. So I would go the first way myself. If you only
need this in a few places, then maybe the second way will be OK
(extra-offset is there for a reason!). The code below shows how that
might look. If you end up doing it a lot you could write shortcut
functions to make it easier.

I would be nice to have a way to stop/start the dynamics context so
that you could tell it to work around these things naturally.

\version "2.20.0"

<<
  \new Staff { c'1 \break c'1 }
  \new Dynamics {
    \override DynamicText.extra-offset = #'(0 . -2)
    \override Hairpin.extra-offset = #'(0 . -2)
    s4 s8\< s\f4 s\> s\!
    \revert DynamicText.extra-offset
    \revert Hairpin.extra-offset
    s4 s\< s\> s\!
  }
  \new Staff { c''''1 c'1 }
>>

Kevin

On Wed, 15 Apr 2020 at 07:42, Edward Neeman <address@hidden> wrote:
>
> Hello,
>
> I’m wondering how I might move the Dynamics context vertically, for just one 
> system?
>
> For example in the below example, I might want to move the dynamics in the 
> first system down, so that they’re closer to being centered between the two 
> staves, like in the second system.
>
> \version "2.20.0"
>
> <<
>   \new Staff { c'1 \break c'1 }
>   \new Dynamics {s4 s8\< s\f4 s\> s\! s4 s\< s\> s\! }
>   \new Staff { c''''1 c'1 }
> >>
>
> Thanks,
> Edward
>
>
>
>
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]