4

I am transcribing a manuscript of BWV 1011 (prelude) and there are a few slurs that appear to be a little faint:

BWV 1011 prelude snippet - showing semiquavers and faint slurs

Is there a way in which the slur opacity can be controlled in LilyPond?

1
  • 3
    I wonder why they are? Maybe it's a later addition? (Also: If you want to indicate this distinction in your own typeset version, it might be worth using a more noticeable method like bracketing them.) Commented Sep 6, 2023 at 22:32

2 Answers 2

4

I'm not sure how to interpreting that measure; is that one large dashed slur, it three short slurs?


If you want a dashed slur, use \slurDashed:

 \slurDashed c''16( b' a' g' a' b') | 

If you need more control of the dashes you can use \slurDashPattern (with a numbers for the dash ratio, and a number for the dash period):

 \slurDashPattern #0.5 #5 c''16( b' a' g' a' b') | 

For more options and details about dashed and dotted slurs, see:
https://lilypond.org/doc/v2.24/Documentation/notation/expressive-marks-as-curves


To simply change to colour of slurs use \override Slur.color (and specify the colour in hexadecimal):

 \override Slur.color = "#888888" c''16( b') a'( g') a'( b') | 

a measure of music repeated with three different styles of slur: a single dashed slur, a single widely dash slur, and three grey slurs

0
4

Lilypond currently uses a PS backend by default. PS does not support opacity, so there is no way to do so. The SVG backend will handle alpha as fourth color channel, so doing

{ \override NoteHead.color = #"#000000A0" b' } 

will work with the SVG backend. Alternatively you may fake it by setting the color gray. Still, it is questionable if you really want to do so. It is quite uncommon to see transparency being used in music engraving, usually you’d go for smaller font sizes, different fonts or dashed/dotted lines for distinction.

EDIT: At some point Lilypond will move away from PS and use a cairo-based backend. This would then render directly to PDF and not require the intermediate postscript step. Although not yet feature complete you can try using it using the commandline option -dbackend=cairo.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.