6

Lilypond issue: I'm trying to get the slurs in acciaccatura to look like this (generated in Musescore): enter image description here

Notice that the slur is beneath the grace note. However, Lilypond insists on putting the slur above:

enter image description here

In voice one for the bar in question I have:

\acciaccatura   d8(  -4   <c a>4)  -2 -1 <g b>4 e4 \rest | 

and in the second voice I have:

e2  e'4

I've tried (and failed) to find something like this in the manual and the snippets.Is it possible to move the slur?

  • 1
    Does \slurDown work? lilypond.org/doc/v2.18/Documentation/notation/… – Greg Jun 16 at 20:49
  • Why is the slur in the top picture going between the notes in the quarter-note chord next to it instead of just below the quarter-note chord? – Dekkadeci Jun 17 at 5:29
  • Musescore puts the end of the slur between the notes of the chord, do you want to replicate that as well? – Kilian Foth Jun 17 at 6:38
  • @Greg: this kind of works, the slur does go down, but the slur goes to the bottom of the chord rather than the top note (sorry for not making this need clear). – SimonM68 Jun 17 at 17:55
  • @Dekkadeci: this is a guitar notation thing. It indicates that a D should be played initially and the pull off goes to the C. – SimonM68 Jun 17 at 17:56
2

To me, the easiest change is to include \once \override Slur #'direction = #DOWN immediately preceding the \acciaccatura. This produces:

enter image description here

\version "2.19.82"

line = \relative c'' {
  \key g \major
  \time 3/4
  <<
    {
      \once \override Slur #'direction = #DOWN
      \acciaccatura d8-4 <c a>4-2-1 <g b>4 r4 | 
    }
    \\
    {
      e,2 e'4 |
    }
  >>
}

\score {
  \new Staff \line
  \layout { }
}

Or, if the slur moving to C is a necessity, you can skip all of this and just input \slashedGrace d8-4_( <c) a>4-2-1:

enter image description here

line = \relative c'' {
  \key g \major
  \time 3/4
  <<
    {
      \slashedGrace d8-4_( <c) a>4-2-1 <g b>4 r4 | 
    }
    \\
    {
      e,2 e'4 |
    }
  >>
}

\score {
  \new Staff \line
  \layout { }
}
  • Thanks, that final version does the trick. It does mess with my polyphony though – in the full version I have the two voices defined separately and then build the staff. To use this approach I have to have the two parts within the << \\ >> structure and use a silent rest in the second voice for the bars where the acciaccatura occurs. – SimonM68 Jun 23 at 14:19
2

Put _ before the ( which represents the slur.

\version "2.18.2"

{
\time 3/4
\key g \major
\acciaccatura d''8_( <c'' a'>4) <g'b'> r4
}

If Lilypond does the opposite, and curves the slur down when you want it up, put a ^ before the (.

  • This gives a slur down, but also leaves the acciaccatura slur in place at the top of the construct. – SimonM68 Jun 17 at 18:24
2

Thanks to everyone for the suggestions. They have helped me narrow down the issues.

I have now found a way to get the look I want:

\override Flag.stroke-style = #"grace"   d8_(-4   <c) a>4  -2 -1
   <g b>4 e4 \rest

Which generates:

enter image description here

Its slightly more complicated than I'd have liked, but there you go. Of course, if anyone can spot an easier solution I'd love to hear about it.

  • But that hasn't solved your problem: Your d'' is not an acciaccatura, but a full quaver/eighth. It's made the following stem-up chords a quaver too late. If there had been a third crotchet/quarter in that upper line, it would have straddled the bar line and the subsequent layout would have gone haywire. – Rosie F Jun 17 at 20:58
  • True, but it is the least wrong to read (to my eyes). After far more reading of the documentation than I should have to do, I'm beginning to think that the issue is related to the way Lilypond deals with polyphony and I may have to add a temporary second voice to hold the a in the chord. – SimonM68 Jun 18 at 12:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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