Re: Cross-staff arpeggios with a grace note

2022-04-14 Thread Knute Snortum
On Thu, Apr 14, 2022 at 2:23 PM Jean Abou Samra  wrote:
>> You can change the arpeggio’s Y-extent to prevent it from pushing away the 
>> other staff.
...
> The magic incantation would be \tweak vertical-skylines ##f.

Thanks Jean and Leo, those work great!

--
Knute Snortum



Re: Cross-staff arpeggios with a grace note

2022-04-14 Thread Jean Abou Samra




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
   }
   2
 }
 \\
 {
   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
  }
  2
    }
    \\
    {
  2
    }
  >>
}

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


Jean




Re: Cross-staff arpeggios with a grace note

2022-04-14 Thread Leo Correia de Verdier
I think there might be a more beautiful solutions to your whole situation, but 
I’m too tired to figure it out right now, so:

You can change the arpeggio’s Y-extent to prevent it from pushing away the 
other staff. 

%%%
\version "2.22.2"

rightHand = {
 e'2
}

leftHand = \relative {
 \clef bass
 <<
   {
 \slashedGrace {
   e8
   \tweak positions #'(-4.5 . 7)
   \tweak extra-spacing-width #'(-1 . 0)
   \tweak X-offset -1
   \tweak Y-extent #'(-4.5 . 2)
   \arpeggio
 }
 2
   }
   \\
   {
 2
   }
 >>
}

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

HTH
/Leo

> 14 apr. 2022 kl. 23:06 skrev Knute Snortum :
> 
> 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
>  }
>  2
>}
>\\
>{
>  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.
> 
> --
> Knute Snortum
> 



Cross-staff arpeggios with a grace note

2022-04-14 Thread Knute Snortum
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
  }
  2
}
\\
{
  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.

--
Knute Snortum