On Thu, Mar 6, 2025 at 12:52 PM Paul Scott <[email protected]> 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.
>
> \version "2.25.24"
>
> dyn = { s1*4 s2\f\< s4. s8\! }
> 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 "|."
>      }
>    } \\
>    { \dyn }
>  >>
> \score{ \music }
>
> I have thousands of lines of code using this separation of time and
> notes and dynamics.
>

It's not clear to me what problem you're trying to solve.  You have a bar
with too many beats (the line with a comment).  Removing the final eighth
note:

8 8 8 8 8 8 4 % \f\< 8 8 8 8 8 4\!

...let's the source code compile without a warning.  (Or you could add a
\partial).  Then I see that the dynamics stretch into the key change.
Modifying dyn:

dyn = { s1*4 s2\f\< s4 s4\! }

...fixes that problem, but I'm not sure any of this is what you want.

--
Knute Snortum

Reply via email to