lilypond-user
[Top][All Lists]
Advanced

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

Re: Cross-staff arpeggios with a grace note


From: Jean Abou Samra
Subject: Re: Cross-staff arpeggios with a grace note
Date: Thu, 14 Apr 2022 23:23:22 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0



Le 14/04/2022 à 23:06, Knute Snortum a écrit :
I am having trouble with arpeggios and grace notes again.  In this
situation, I have a cross-staff arpeggio of a chord with a grace note
(see attachment).  LilyPond's default is to put the arpeggio and grace
note on top of each other.  Jean taught me the trick of putting the
arpeggio on the grace note and adjusting the arpeggio's length and
position from there, like this:

%%%
\version "2.22.2"

rightHand = {
   e'2
}

leftHand = \relative {
   \clef bass
   <<
     {
       \slashedGrace {
         e8
         \tweak positions #'(-4.5 . 5)
         \tweak extra-spacing-width #'(-1 . 0)
         \tweak X-offset -1
         \arpeggio
       }
       <e gis>2
     }
     \\
     {
       <cis, gis'>2
     }
   >>
}

\new PianoStaff <<
   \new Staff \rightHand
   \new Staff \leftHand
%%%

This almost produces what I want.  The problem is I can't get the
arpeggio to cross into the upper staff.  If you make the arpeggio
higher than a certain amount (that is, \tweak positions #'(-4.5 . 5)
with a cdr of more than 5 or so) the upper staff shies away from the
arpeggio.

Any help getting the arpeggio past the lower part of the upper staff
will be appreciated.

The magic incantation would be \tweak vertical-skylines ##f.


\version "2.22.2"

rightHand = {
  e'2
}

leftHand = \relative {
  \clef bass
  <<
    {
      \slashedGrace {
        e8
        \tweak positions #'(-4.5 . 10)
        \tweak extra-spacing-width #'(-1 . 0)
        \tweak X-offset -1
        \tweak vertical-skylines ##f
        \arpeggio
      }
      <e gis>2
    }
    \\
    {
      <cis, gis'>2
    }
  >>
}

\new PianoStaff <<
  \new Staff \rightHand
  \new Staff \leftHand
>>


Jean




reply via email to

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