On Thu, Mar 6, 2025 at 3:52 PM Paul Scott <waterhorsemu...@aol.com> wrote:

> Hi,
>
> I posted before about time signatures and/or key changes repeated at the
> end of the previous line and was shown that it works correctly.
>
> I finally saw the problem that occasionally effects my normal code
> structure.
>
> I always separate notes and time and dynamics to be able to use all or
> parts of them more than once.
>
> The following MWE shows the rare example of when this separation causes
> trouble.
>

You never explained the trouble you saw.  Knute saw that you had an extra
1/8th note in your measure (it looks to me like you put the % after the 8,
when it should have been before the 8.  When I took it away, I saw that the
hairpin extended past the barline into the new key signature.  Is that the
problem you are seeing?

I note that when the dynamics are in with the music, this didn't happen.

I couldn't figure out any way to fix that problem.

This is a very nice tiny example!

I thought that your use of <<{}\\{}>> might have been the problem.  But
when I eliminated that , it still didn't work.
I thought that perhaps failure to explicitly instantiate contexts might
have been the problem.  But explicitly instantiating the contexts didn't
fix it either.
I thought that perhaps not having the key change in the dynamics context
could have been the problem.  But adding the key change didn't fix it
either.

So I'm stumped.

Here's my code that shows the difference between the hairpin in the Voice
with the music and in the Voice without the music.

\version "2.25.11"

dyn = { s1*4 s2\f\< s4. s8\!  \time 8/8 \key fis \major s1 }
music =
     \fixed c' {
       \key g \major
       g4 4 4 4 a4 4 4 4 \repeat unfold 1 { b4 4 4 4 }
       \repeat unfold 8 { 8 }
       %8 8 8 8 8 8 4  %
       8\f\< 8 8 8 8 8 4\!
       \break
       \time 8/8
       \key fis \major
       a1 1 \bar "|."
     }
\score{
  \new Staff<<
    \new Voice \music
    \new Voice \dyn
  >>
}

Reply via email to