Can't modify multiple shapes on a chord

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Can't modify multiple shapes on a chord

Paolo Prete-3
Hello.

Please consider this (tested on 2.19.84):

\new Voice <<
  {  \shape #'((0 . 0) (0 . 0) (0 . 0) (3 . 0)) Tie c' ~ c' }
  {  \shape #'((0 . 0) (0 . 0) (0 . 0) (0 . 0)) Tie c'' ~ c'' }
>>

If I modify the shape on the first tie, changes are applied on the second tie. Is this a bug? If so, is there a fix/workaround for this?
I tried  \partcombine too, and the issue persists.

Thanks.

Best,

P
Reply | Threaded
Open this post in threaded view
|

Re: Can't modify multiple shapes on a chord

Mark Knoop-4
At 14:44 on 25 Mar 2020, Paolo Prete wrote:

> Hello.
>
> Please consider this (tested on 2.19.84):
>
> \new Voice <<
>   {  \shape #'((0 . 0) (0 . 0) (0 . 0) (3 . 0)) Tie c' ~ c' }
>   {  \shape #'((0 . 0) (0 . 0) (0 . 0) (0 . 0)) Tie c'' ~ c'' }
>>>
>
> If I modify the shape on the first tie, changes are applied on the second
> tie. Is this a bug? If so, is there a fix/workaround for this?
> I tried  \partcombine too, and the issue persists.

Since both ties occur at the same moment, you need to use the tweak form of \shape. See this page for details.

http://lilypond.org/doc/v2.19/Documentation/notation/modifying-shapes

--
Mark Knoop

Reply | Threaded
Open this post in threaded view
|

Re: Can't modify multiple shapes on a chord

Paolo Prete-3


On Wed, Mar 25, 2020 at 4:20 PM Mark Knoop <[hidden email]> wrote:
At 14:44 on 25 Mar 2020, Paolo Prete wrote:
> Hello.
>
> Please consider this (tested on 2.19.84):
>
> \new Voice <<
>   {  \shape #'((0 . 0) (0 . 0) (0 . 0) (3 . 0)) Tie c' ~ c' }
>   {  \shape #'((0 . 0) (0 . 0) (0 . 0) (0 . 0)) Tie c'' ~ c'' }
>>>
>
> If I modify the shape on the first tie, changes are applied on the second
> tie. Is this a bug? If so, is there a fix/workaround for this?
> I tried  \partcombine too, and the issue persists.

Since both ties occur at the same moment, you need to use the tweak form of \shape. See this page for details.

http://lilypond.org/doc/v2.19/Documentation/notation/modifying-shapes

--
Mark Knoop



I tried with both " - \tweak " and  " - \shape "  and the issue persists. Please see

\new Voice <<
   {  c'  - \shape #'((0 . 0) (0 . 0) (2 . 0) (0 . 0)) ~ c' }
   {  c'' - \shape #'((10 . 0) (0 . 0) (0 . 0) (0 . 0))  ~ c'' }
>>

\new Voice <<
   {  c'  - \tweak control-points #'((0 . 0) (0 . 0) (2 . 0) (0 . 0)) ~ c' }
   {  c'' - \tweak control-points #'((10 . 0) (0 . 0) (0 . 0) (14 . 0))  ~ c'' }
>>


Thanks






 
Reply | Threaded
Open this post in threaded view
|

Re: Can't modify multiple shapes on a chord

Kevin Barry
On Wed, 25 Mar 2020 at 19:14, Paolo Prete <[hidden email]> wrote:
>> > Please consider this (tested on 2.19.84):
>> >
>> > \new Voice <<
>> >   {  \shape #'((0 . 0) (0 . 0) (0 . 0) (3 . 0)) Tie c' ~ c' }
>> >   {  \shape #'((0 . 0) (0 . 0) (0 . 0) (0 . 0)) Tie c'' ~ c'' }
>> >>>

I haven't seen this construction before ( \new Voice << { } { } >>).
You should either have two separate Voices or put a "\\" in between
the two music expressions, so that lilypond will split it into two
voices. Otherwise LilyPond is trying to add two ties at the same time
in the same voice which means you can't override it twice

Reply | Threaded
Open this post in threaded view
|

Re: Can't modify multiple shapes on a chord

Paolo Prete-3


I haven't seen this construction before ( \new Voice << { } { } >>).
You should either have two separate Voices or put a "\\" in between
the two music expressions, so that lilypond will split it into two
voices.

Sorry but I can't figure what is the *right* expression for solving the issue.
Please can you provide it by pasting the correct code for the previous example?

thanks




 
Reply | Threaded
Open this post in threaded view
|

Re: Can't modify multiple shapes on a chord

David Nalesnik
In reply to this post by Paolo Prete-3
Hi Paolo,

On Wed, Mar 25, 2020 at 9:45 AM Paolo Prete <[hidden email]> wrote:

>
> Hello.
>
> Please consider this (tested on 2.19.84):
>
> \new Voice <<
>   {  \shape #'((0 . 0) (0 . 0) (0 . 0) (3 . 0)) Tie c' ~ c' }
>   {  \shape #'((0 . 0) (0 . 0) (0 . 0) (0 . 0)) Tie c'' ~ c'' }
> >>
>
> If I modify the shape on the first tie, changes are applied on the second tie. Is this a bug? If so, is there a fix/workaround for this?
> I tried  \partcombine too, and the issue persists.
>

In order to get at individual ties in a chord, you have to resort to
desperate measures.  Use the code here:
https://www.mail-archive.com/lilypond-devel@.../msg47432/shape-tie-columns.ly

Hope this helps,
David

Reply | Threaded
Open this post in threaded view
|

Re: Can't modify multiple shapes on a chord

Paolo Prete-3



In order to get at individual ties in a chord, you have to resort to
desperate measures.  Use the code here:
https://www.mail-archive.com/lilypond-devel@.../msg47432/shape-tie-columns.ly

Hope this helps,
David


Thank you David,

although it does the job I still wonder if the "tweak" (?) method suggested by Mark can work too, so to have multiple shape commands together, instead of a shapeColumn.

Best,
Paolo 
Reply | Threaded
Open this post in threaded view
|

Re: Can't modify multiple shapes on a chord

David Nalesnik
Hi Paolo,

On Wed, Mar 25, 2020 at 5:56 PM Paolo Prete <[hidden email]> wrote:

>
>
>>
>>
>> In order to get at individual ties in a chord, you have to resort to
>> desperate measures.  Use the code here:
>> https://www.mail-archive.com/lilypond-devel@.../msg47432/shape-tie-columns.ly
>>
>> Hope this helps,
>> David
>
>
>
> Thank you David,
>
> although it does the job I still wonder if the "tweak" (?) method suggested by Mark can work too, so to have multiple shape commands together, instead of a shapeColumn.
>
> Best,
> Paolo

Won't work, hence the elaborate code. From the Notation Reference
(http://lilypond.org/doc/v2.20/Documentation/notation/modifying-shapes.en.html#modifying-ties-and-slurs):

"Known issues and warnings
It is not possible to modify shapes of ties or slurs by changing the
control-points property if there are multiple ties or slurs at the
same musical moment – the \tweak command will also not work in this
case. However, the tie-configuration property of TieColumn can be
overridden to set start line and direction as required."

DN

Reply | Threaded
Open this post in threaded view
|

Re: Can't modify multiple shapes on a chord

Paolo Prete-3


On Thu, Mar 26, 2020 at 1:21 PM David Nalesnik <[hidden email]> wrote:

>
> although it does the job I still wonder if the "tweak" (?) method suggested by Mark can work too, so to have multiple shape commands together, instead of a shapeColumn.
>
> Best,
> Paolo

Won't work, hence the elaborate code. From the Notation Reference
(http://lilypond.org/doc/v2.20/Documentation/notation/modifying-shapes.en.html#modifying-ties-and-slurs):

"Known issues and warnings
It is not possible to modify shapes of ties or slurs by changing the
control-points property if there are multiple ties or slurs at the
same musical moment – the \tweak command will also not work in this
case. However, the tie-configuration property of TieColumn can be
overridden to set start line and direction as required."

DN

Thank you David, now I have a clear idea about the status of the issue.
Best,
Paolo