[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A problem with "placing grace notes between arpeggios and chords"
From: |
Edward Neeman |
Subject: |
Re: A problem with "placing grace notes between arpeggios and chords" |
Date: |
Wed, 15 Nov 2017 13:18:29 -0500 |
The quick and dirty solution would be this code:
https://code.google.com/archive/p/lilypond/issues/794
Surely it can be improved by tweaking the scheme function to avoid
using extra-offset.
\version "2.19.80"
\score {
<<
\new Staff {
\grace { \override Score.Arpeggio.positions =
#(lambda (grob) (interval-widen
(ly:arpeggio::calc-positions grob) 2.7))
\override Score.Arpeggio.extra-offset = #'(0 . -2.7)
\once \hideNotes e'8\arpeggio }
e'4
}
\new Staff
{ \clef bass
<<
\new Voice {
\voiceOne
\once \slurDown
\grace e8_~\arpeggio <e gis>2.
}
\new Voice { \voiceTwo <cis, gis,> }
>>
}
>>
\layout {
\context {
\Score
\consists "Span_arpeggio_engraver"
connectArpeggios = ##t
}
}
}
Best,
Edward
--------------
Dr. Edward Neeman
Adjunct Instructor, South Georgia State College
Collaborative Pianist, Valdosta State University, Georgia
Artist Faculty, ELMS Conservatory, Jakarta
address@hidden
www.neemanpianoduo.com
On Tue, Nov 14, 2017 at 3:51 PM, Thomas Morley <address@hidden> wrote:
> 2017-11-14 20:08 GMT+01:00 Robert Blackstone <address@hidden>:
>> Thank you very much, Harm.
>> Two solutions. No way that I would ever have been able to figure this out.
>> I'm very impressed.
>>
>> The "bad news" is that only the first part of my problem is solved. What I
>> would need is a cross-staff arpeggio that includes the bass notes (in this
>> testfile; the, or a, real occurrence is in bar 91 of Chopin's Nocturne Op.
>> 37 No. 2. Another nasty problem is in bar 119 of the same Nocturne. )
>>
>
> Comparing the different editions at IMSLP, I'd say say there's a wide
> variety how this piece is typeset.
>
> Here some coding-thoughts:
>
> \score {
> <<
> \new Staff {
> \grace { \once \hideNotes e'8\arpeggio }
> e'4
> }
> \new Staff
> { \clef bass
> <<
> \new Voice {
> \voiceOne
> \once \slurDown
> \grace e8_~\arpeggio <e gis>2.
> }
> \new Voice { \voiceTwo <cis, gis,> }
> >>
> }
> >>
>
> \layout {
> \context {
> \Score
> \consists "Span_arpeggio_engraver"
> connectArpeggios = ##t
> }
> }
> }
>
>
> \score {
> <<
> \new Staff <<
> \key g \major
> \new Voice {
> s1
> \voiceOne
> ais''4\arpeggio
> }
> \new Voice {
> s1
> \set tieWaitForNote = ##t
>
> \grace {
> \once \override Slur.positions = #'(3 . 5)
> b'16[^( b'~ dis''-\tweak minimum-length #5 _~]
> }
> \voiceFour
> \dotsUp
> <b' dis''>2.\arpeggio)
> }
> \new Voice {
> s1
> \voiceTwo ais'4
> }
> >>
> \new Staff {
> \key g \major
> \clef bass
> s1
> <fis dis'>2.\arpeggio
> }
> >>
>
> \layout {
> \context {
> \Score
> \consists "Span_arpeggio_engraver"
> connectArpeggios = ##t
> }
> }
> }
>
>
> Cheers,
> Harm
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user
- A problem with "placing grace notes between arpeggios and chords", Robert Blackstone, 2017/11/14
- Re: A problem with "placing grace notes between arpeggios and chords", Edward Neeman, 2017/11/15
- Re: A problem with "placing grace notes between arpeggios and chords", Thomas Morley, 2017/11/15
- Re: A problem with "placing grace notes between arpeggios and chords", Edward Neeman, 2017/11/15
- Re: A problem with "placing grace notes between arpeggios and chords", Thomas Morley, 2017/11/15