Thank you very much !

Claire

On Thu, Sep 17, 2020 at 2:16 PM Xavier Scheuer <x.sche...@gmail.com> wrote:

> On Thu, 17 Sep 2020 at 13:23, Claire Meyer <
> claire.meyer.bourhis.lilyp...@gmail.com> wrote:
> >
> > Hi Lukas,
> >
> > Oh, yes, unfortunately, I need a normal (cross-staff) arpeggio as well.
> I need something like a mix between the two following things :
> >
> > My code looks like :
> >
> > [...]
> >
> > So yeah, I guess I'd be grateful for a guru. Thanks for your answer
> though, I'll remember it for when the case arises, cause it works as you
> said.
>
> Hi Claire,
>
> Since you are using cross-pianostaff arpeggio, change the definition of
> arpeggioNormal and arpeggioParenthesis to apply to PianoStaff.
>
> arpeggioNormal = {
>   \revert PianoStaff.Arpeggio.stencil
>   \revert PianoStaff.Arpeggio.X-extent
>   \revert PianoStaff.Arpeggio.arpeggio-direction
>   \revert PianoStaff.Arpeggio.dash-definition
> }
>
> arpeggioParenthesis = {
>   \override PianoStaff.Arpeggio.stencil = #ly:arpeggio::brew-chord-slur
>   \override PianoStaff.Arpeggio.X-extent = #ly:grob::stencil-width
>   \revert PianoStaff.Arpeggio.dash-definition
> }
>
> upperHighB = \relative c''' {
> s8 r8 ees8. des16 |
> c4 c8. bes16 |
> \arpeggioParenthesis
> aes4 bes8. \arpeggio c16 |
> des2~ \arpeggio |
> des4 c8. bes16 |
> }
>
> upperLowB = \relative c' {
> \arpeggioNormal
> <ees g bes>8 \arpeggio s4. |
> ees'8. des16 c4 |
> \arpeggioParenthesis
> c8. bes16 aes4 \arpeggio |
> bes8. \arpeggio c16 des4~ |
> des2 |
> }
>
> lowerVoiceB = \relative c {
> \arpeggioNormal
> <ees bes'>8 \arpeggio r r4 |
> <aes, aes,>16 c'[ aes ees] ees'8 ees, |
> <c c,>16 c'[ aes ees] ees'8 ees, |
> <bes bes,>16 des'[ aes ees] ees'8 ees, |
> ees,16 des''[ g, ees] ees'8 ees, |
> }
>
> global = {
> \time 2/4
> \key aes \major
> }
>
> upper = {
> \global
> \clef "treble"
>
> <<
> \new Voice { \voiceOne \upperHighB }
> \new Voice { \voiceTwo \upperLowB }
> >>
> }
>
> lower = {
> \global
> \clef "bass"
>
> \lowerVoiceB
> }
>
> \score {
> \new PianoStaff
> <<
> \set PianoStaff.connectArpeggios = ##t
> \new Staff = "piano upper" \upper
> \new Staff = "piano lower" \lower
> >>
> % \layout {
> % \context {
> % \PianoStaff
> % \arpeggioParenthesis
> % }
> % }
> }
>
> Cheers,
> Xavier
>
> --
> Xavier Scheuer <x.sche...@gmail.com>
>
>

Reply via email to