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