lilypond-user
[Top][All Lists]
Advanced

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

Re: Horizontally aligning mixed articulations in /improvisationOn mode


From: Jean Abou Samra
Subject: Re: Horizontally aligning mixed articulations in /improvisationOn mode
Date: Thu, 17 Nov 2022 11:40:11 +0100 (CET)

> Le 17/11/2022 11:07 CET, Viktor Mastoridis <viktor.mastoridis@gmail.com> a 
> écrit :
> 
> 
> Hello,
> 
> Adding a ^\staccato articulation to \improvisationOn notation renders it 
> correctly, the dot is aligned with the top of the stem.
> When adding \upbow however, the articulation is aligned with the note head, 
> being engraved at the left of the stem.
> The same happens in \upbow^\staccato.
> 
> I can solve the problem by manually inserting Script.extra-offset per bar, as 
> in the last bar of the example below.
> But I wonder whether there's a more elegant solution?
> 
> \version "2.22.2"
>  {\time 2/4
>  \improvisationOn \repeat unfold 2 { a'4^\staccato} 
>  \repeat unfold 2 { a'4^\upbow}
> \repeat unfold 2 { a'4\upbow^\staccato}
>  \override Script.extra-offset = #'(0.8 . 0)
> \repeat unfold 2 { a'4\upbow^\staccato}
>  }


This is controlled by the toward-stem-shift and
toward-stem-shift-in-column properties. Try

\version "2.22.2"

{
  \time 2/4
  \improvisationOn \repeat unfold 2 { a'4^\staccato}
  \repeat unfold 2 { a'4^\upbow}
  \repeat unfold 2 { a'4\upbow^\staccato}
  \override Script.toward-stem-shift = 1.0
  \override Script.toward-stem-shift-in-column = 1.0
  \repeat unfold 2 { a'4\upbow^\staccato}
}
 
 

Best,
Jean



reply via email to

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