bug-lilypond
[Top][All Lists]
Advanced

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

Dynamics placed incorrectly around staff changes


From: Chris Snyder
Subject: Dynamics placed incorrectly around staff changes
Date: Wed, 30 Dec 2009 15:43:29 -0500
User-agent: Thunderbird 2.0.0.23 (X11/20090817)

I just discovered some incorrect behavior in how LP places dynamics around staff changes. It occurs when there's a hairpin followed by a dynamic marking and a staff change occurring at the same time as the dynamic marking. See the following snippet:

%% BEGIN SNIPPET
\version "2.13.9"

notesUpper = \relative c' {
        \dynamicUp c1\> |
        c |
        \change Staff = "lower" c\pp^"pp?" |
        c\p |
        \change Staff = "upper" \dynamicDown c1\p |
        c\<_"hairpin?" |
        c |
        \change Staff = "lower" c\mp |
}

\score { \new PianoStaff <<
        \new Staff = "upper" { \notesUpper }
        \new Staff = "lower" { s1*8 }
>> }
%% END SNIPPET

I'm guessing that this is due to LP's handling of the alignment of adjacent dynamic markings. The weird thing is that the behavior is different depending on the direction of the dynamics: \dynamicUp causes the dynamic text to be incorrectly placed, while \dynamicDown causes the hairpin to be placed incorrectly. I'm sure we could come up with a bunch of other weird permutations of this (what about dynamic text followed by a hairpin, etc.?).

This was especially weird for me because I discovered it while working with \RemoveEmptyContext staves: the dynamic I was expecting didn't appear at all!

Thanks,
Chris

--
Chris Snyder
Adoro Music Publishing
1-616-828-4436 x800
http://www.adoromusicpub.com

PNG image


reply via email to

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