Re: Dynamics placement in partCombine

2023-10-13 Thread Michael Gerdau

Quick answer, and I’m not sure it will help much:

\dynamicUp affects the context (Voice) in which it’s placed. 
\partCombine combines its arguments into new Voices and \dynamicUp 
ended up in a different voice than the p


Thank you for your answer.

When you remove \dynamicUp ALL dynamics appear below. What irritates me 
is that when you have identical dynamic markings in both voices 
\dynamicUp and things like \override DynamicTextSpanner.style = #'none 
work normally. However when voices have differing dynamics it stops to 
work at some point.


Might be due to the temporary contexts created by \partCombine 
internally. The current behaviour is very unexpected to me though.


The following seems to work:
- snip - snip - snip - snip - snip - snip -
\version "2.25.9"

musa = { \dynamicUp c'4\p \repeat unfold 3 { c' }
  \dynamicUp c'4\p \repeat unfold 3 { c' }
  c'4\p \repeat unfold 3 { c' } }
musb = { \dynamicUp s1
  \dynamicUp c'4\p \repeat unfold 3 { c' }
  c'4\p \repeat unfold 3 { c' } }

\score {
  \partCombine \musa \musb
}

\score {
  \partCombine \musb \musa
}

\score {
  \partCombine \musa \musa
}

\score {
  \partCombine \musb \musb
}
- snip - snip - snip - snip - snip - snip -

Kind regards,
Michael--
 Michael Gerdau   email: m...@qata.de
 GPG-keys available on request or at public keyserver\version "2.25.9"

musa = { \dynamicUp c'4\p \repeat unfold 3 { c' }
  \dynamicUp c'4\p \repeat unfold 3 { c' }
  c'4\p \repeat unfold 3 { c' } }
musb = { \dynamicUp s1
  \dynamicUp c'4\p \repeat unfold 3 { c' }
  c'4\p \repeat unfold 3 { c' } }

\score {
  \partCombine \musa \musb
}

\score {
  \partCombine \musb \musa
}

\score {
  \partCombine \musa \musa
}

\score {
  \partCombine \musb \musb
}


partCombine-Test.pdf
Description: Adobe PDF document


Re: Dynamics placement in partCombine

2023-10-13 Thread Michael Gerdau

Quick answer, and I’m not sure it will help much:

\dynamicUp affects the context (Voice) in which it’s placed. \partCombine 
combines its arguments into new Voices and \dynamicUp ended up in a different 
voice than the p


Thank you for your answer.

When you remove \dynamicUp ALL dynamics appear below. What irritates me 
is that when you have identical dynamic markings in both voices 
\dynamicUp and things like \override DynamicTextSpanner.style = #'none 
work normally. However when voices have differing dynamics it stops to 
work at some point.


Might be due to the temporary contexts created by \partCombine 
internally. The current behaviour is very unexpected to me though.


Kind regards,
Michael--
 Michael Gerdau   email: m...@qata.de
 GPG-keys available on request or at public keyserver



Re: Dynamics placement in partCombine

2023-10-13 Thread Michael Gerdau

Quick answer, and I’m not sure it will help much:

\dynamicUp affects the context (Voice) in which it’s placed. \partCombine 
combines its arguments into new Voices and \dynamicUp ended up in a different 
voice than the p


Thank you for your answer.

When you remove \dynamicUp ALL dynamics appear below. What irritates me 
is that when you have identical dynamic markings in both voices 
\dynamicUp and things like \override DynamicTextSpanner.style = #'none 
work normally. However when voices have differing dynamics it stops to 
work at some point.


Might be due to the temporary contexts created by \partCombine 
internally. The current behaviour is very unexpected to me though.


Kind regards,
Michael
--
 Michael Gerdau   email: m...@qata.de
 GPG-keys available on request or at public keyserver



Re: Dynamics placement in partCombine

2023-10-13 Thread Michael Gerdau
I presume that partCombine overrides the dynamic placement so that 
dynamics for the two parts are placed above and below, which seems a 
reasonable approach when the parts are more distinct than in the given 
example.  Using ^ to override it in this case seems a tolerable alternative.


Thank you for your answer.

I'm not sure that's the correct explanation though.
See this:
- snip - snip - snip - snip - snip - snip - snip -
\version "2.25.9"

musa = { \dynamicUp c'4\p \repeat unfold 3 { c' }
  c'4\p \repeat unfold 3 { c' }
  c'4\p \repeat unfold 3 { c' } }
musb = { \dynamicUp s1
  c'4\p \repeat unfold 3 { c' }
  c'4\p \repeat unfold 3 { c' } }

\score {
  \partCombine \musa \musb
}

\score {
  \partCombine \musb \musa
}

\score {
  \partCombine \musa \musa
}

\score {
  \partCombine \musb \musb
}
- snip - snip - snip - snip - snip - snip - snip -

When you repeat the last bar identically in both \musa and \musb the 
dynamics stay below in the first two scores and stay above in the second 
two scores.


To me this looks like a bug.

Kind regards,
Michael
--
 Michael Gerdau   email: m...@qata.de
 GPG-keys available on request or at public keyserver\version "2.25.9"

musa = { \dynamicUp c'4\p \repeat unfold 3 { c' }
  c'4\p \repeat unfold 3 { c' }
  c'4\p \repeat unfold 3 { c' } }
musb = { \dynamicUp s1
  c'4\p \repeat unfold 3 { c' }
  c'4\p \repeat unfold 3 { c' } }

\score {
  \partCombine \musa \musb
}

\score {
  \partCombine \musb \musa
}

\score {
  \partCombine \musa \musa
}

\score {
  \partCombine \musb \musb
}


partCombine-Test.pdf
Description: Adobe PDF document


Re: Dynamics placement in partCombine

2023-10-13 Thread Paul Hodges
I presume that partCombine overrides the dynamic placement so that dynamics for 
the two parts are placed above and below, which seems a reasonable approach 
when the parts are more distinct than in the given example.  Using ^ to 
override it in this case seems a tolerable alternative.


Paul



 From:   Michael Gerdau  
 To:   lilypond-user  
 Sent:   13/10/2023 11:30 
 Subject:   Dynamics placement in partCombine 

Hi list, 
 
the following code places the 2nd \p under the music but I'd like it  
above. I know I could explicitly add a placement (like ^\p) but wonder  
why \dynamicUp doesn't do its job. 
 
- snip - snip - snip - snip - snip - snip - snip - 
\version "2.25.9" 
 
musa = { \dynamicUp c'4\p \repeat unfold 3 { c' } c'4\p \repeat unfold 3  
{ c' } } 
musb = { \dynamicUp s1 c'4\p \repeat unfold 3 { c' } } 
\score { 
   \partCombine \musa \musb 
} 
- snip - snip - snip - snip - snip - snip - snip - 
 
Kind regards, 
Michael 
--  
  Michael Gerdau       email: m...@qata.de 
  GPG-keys available on request or at public keyserver

Re: Dynamics placement in partCombine

2023-10-13 Thread Leo Correia de Verdier
Quick answer, and I’m not sure it will help much: 

\dynamicUp affects the context (Voice) in which it’s placed. \partCombine 
combines its arguments into new Voices and \dynamicUp ended up in a different 
voice than the p

> 13 okt. 2023 kl. 12:32 skrev Michael Gerdau :
> 
> Hi list,
> 
> the following code places the 2nd \p under the music but I'd like it above. I 
> know I could explicitly add a placement (like ^\p) but wonder why \dynamicUp 
> doesn't do its job.
> 
> - snip - snip - snip - snip - snip - snip - snip -
> \version "2.25.9"
> 
> musa = { \dynamicUp c'4\p \repeat unfold 3 { c' } c'4\p \repeat unfold 3 { c' 
> } }
> musb = { \dynamicUp s1 c'4\p \repeat unfold 3 { c' } }
> \score {
> \partCombine \musa \musb
> }
> - snip - snip - snip - snip - snip - snip - snip -
> 
> Kind regards,
> Michael
> -- 
> Michael Gerdau   email: m...@qata.de
> GPG-keys available on request or at public keyserver
> 
>