Hello Joel

You can shape the Slur manually, like so:

\version "2.25.11"

\fixed c' {
  % undotted note: slur attaches correctly
  <c e g(>2
  <d f a)> |

  % dotted note: slur is moved vertically
  \shape #'((1 . 0.5) (0.5 . 0.3) (0.5 . 0.3) (0 . 0)) Slur %adjusting the numbers control the four control points of the Bézier curves
  <c e g(>2.
  <d f a)>4 |

  % undotted note tie for comparison
  <c e g~>2 q |

  % dotted note tie for comparison: slur overlaps dot
  <c e g~>2. q4 |
}

Best wishes,
Jakob

On 07.01.2024 20.16, Joel C. Salomon wrote:

Reposting for clarity as to what I’m asking.

In the second case below, instead of the slur attaching to the specific note, it moves vertically—I assume, to avoid collision with the duration dot.  (Though it’s interesting that a tie does not mind overlapping the dot, as in the fourth case.)

In the second case, how can I either—

  * Allow the slur to overlap the dot (the code shown below does not
    work), or
  * Move the left anchor of the slur horizontally past the dot, so
    they don’t conflict?

Obvious searches like [lilypond chord slur dotted note] <https://www.google.com/search?q=lilypond+chord+slur+dotted+note> do not turn up mention of this, or of any tweak to avoid this. Any hints?

—Joel C. Salomon

|```
\version "2.25.11"

\fixed c' {
  % undotted note: slur attaches correctly
  <c e g(>2
  <d f a)> |

  % dotted note: slur is moved vertically
  \once \override Slur.avoid-slur = #'ignore    % does nothing
  <c e g(>2.
  <d f a)>4 |

  % undotted note tie for comparison
  <c e g~>2 q |

  % dotted note tie for comparison: slur overlaps dot
  <c e g~>2. q4 |
}
```|

Reply via email to