lilypond-user
[Top][All Lists]
Advanced

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

Re: accidentalSugggestion


From: Leo Correia de Verdier
Subject: Re: accidentalSugggestion
Date: Thu, 7 Oct 2021 14:41:00 +0200

avoid-slur will work only on within-staff objects. By default Accidental 
suggestions are outside-staff, so for this to work, you’ll have to set 
outside-staff-priority to ##f. You can adjust staff-padding according to what 
distance you want the accidental to the staff.

%%%%%%%
\version "2.22.1"
\fixed c'' { f2.(
  \set suggestAccidentals = ##t
  \override Staff.AccidentalSuggestion.outside-staff-priority = ##f
  \override Staff.AccidentalSuggestion.staff-padding = #1.5
  \override Staff.AccidentalSuggestion.avoid-slur = #'inside
  \override Staff.AccidentalSuggestion.font-size = #-2
  e!4~  |  e1) }
%%%%%%%


> 7 okt. 2021 kl. 14:16 skrev E Appeldoorn <ursus.kirk@gmail.com>:
> 
> I would like to keep the accidental created above the e! within the bounds of 
> the larger slur (from f2 ending on e1)
> This is what I came up with. The accidental is created but is kept above the 
> slur. The internal documentation suggested to me this would work (it reads:  
> inside adjusts the slur if needed to keep the grob inside the slur.)
> What have I missed?
> 
>   f2.(
>   \set suggestAccidentals = ##t
>   \override Staff.AccidentalSuggestion.avoid-slur = #'inside
>   \override Staff.AccidentalSuggestion.font-size = #-2
>   e!4~  |  e1)
> 
> Thanks in advance for your help,
> Ursus




reply via email to

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