lilypond-user
[Top][All Lists]
Advanced

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

Re: Cross-staff slurs


From: Jean Abou Samra
Subject: Re: Cross-staff slurs
Date: Mon, 19 Apr 2021 08:59:44 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1


Le 19/04/2021 à 07:47, Jacques Menu a écrit :
Hello folks,

MusicXML has the concept of a slur to a note in another staff, and MusicScore provides this feature. The simple attempt, first attached image, doesn’t produce a satisfactory result.

Is there a way to obtain such a slur in LilyPond without setting control points manually, as is shown in https://lsr.di.unimi.it/LSR/Item?id=134 <https://lsr.di.unimi.it/LSR/Item?id=134>, second attached image?

Thanks for your help!

JM

Hi Jacques,

LilyPond does support cross-staff slurs. In your example, it thinks the slur is going to look ugly if crossing the staves, and chooses a less steep option.

You can increase the demerit for slurs with end points too far from the note heads to force it to span the total vertical interval between the heads:

\new PianoStaff <<
  \new Staff = "right" {
    \override Slur.details.edge-attraction-factor = 1000
    e'''2(
    \change Staff = "left"
    a4)
    \change Staff = "right"
    b''8 r |
  }
  \new Staff = "left" {
    \clef bass
    s1
  }
>>

See:

http://lilypond.org/doc/v2.22/Documentation/internals/slur_002dinterface

Cheers,
Jean




reply via email to

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