4

I'd like to fix two errors with legato appearance near the repeat sign.

  1. I'd like the legato before the repeat (inside the 1st volta) to extend slightly to the right from the A note to emphasize that it connects to the beginning of the repeat.
  2. I'd like the slur (that I created with \repeatTie command) to be up not down, however, I do not understand how to control it.

This is the code:

\version "2.22.2"

upper = \relative c' {
  \clef treble
  \key a \minor
  \time 4/4
  \tempo "Moderato" 4 = 94
  
  r1 |
  r2 r4 e8( a |
  \repeat volta 2 {
  b2. c4 |
  a2) r4 e8( a |
  b2. e4 |
  c2) r4 e4( |
  b2) r4 r8 c8( |
  }
  \alternative {
  { a2) r2 |
    r2 r4 \slurUp e8( a) |
  }
  { a2\repeatTie r4. g8( |
    b2) r2 |
  }
  }
  
  % Part B
  e8( a, c e f d e c) |
  e8( a, c e f d e c) |
}


\score {
  \new PianoStaff \with { instrumentName = "Piano" }
  <<
    \new Staff = "upper" \upper
    %\new Staff = "lower" \lower
  >>
  \layout { }
  \midi { }
}

excerpt and miss-matched slurs across volta repeat

1 Answer 1

2

Controlling the direction of a single tie or slur etc. is better done with ^ for up, and _ for down.

You can control the shapes of these curves with the \shape command, (see modifying shapes). The pairs of numbers specify the coordinates of the "control points" of Bézier curves, (play around with these to see what they do).

If you upgrade to v2.23 (which I'd generally recommend) you can use \vshape to see exactly where these control points are, (see modifying shapes, v2.23). This helps in choose the best coordinates, but is not necessary.

You should get something like this:

...
\alternative {
    { 
        a2) r2 |
        r2 r4 
        \shape #'((0 . 0) (0 . 0) (2 . 0) (2 . 0)) Slur
            e8^( a) |
    }
    { 
        \shape #'((0 . 3) (0 . 3) (0.5 . 3) (0.5 . 3)) RepeatTie
            a2^\repeatTie r4 r8 g8( |
        b2) r2 |
    }
}
...

slur and repeat tie with modified shapes


3
  • 3
    Heh, I'm glad to see that \vshape (which I added) is seeing some use :-) May 21, 2022 at 12:11
  • 1
    @ABOUSAMRAJean Thank you so much. Bézier curves really are a lot easier to work with when you can actually see the control points. May 21, 2022 at 12:58
  • You'll probably want to get the repeat-tie under the 2. to look like the slur under the 1., so you'll have to adjust the control points a bit. Aug 6, 2022 at 4:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.