Dear all, I'm trying to code a score of mine in which the end point of a glissando is notated with a grace note - see the attached EXAMPLE no. 1. This is become a quite common notation in contemporary music, and it would be great to find a solution for it.
The \afterGrace (Lilypond )command seems to me a good starting point. But since the end point must be so close as possible to the next note or rest or bar line, one needs to change the position of the grace note defining the afterGraceFraction. So far so good. %%%%%% CODE FOR EXAMPLE No. 1 %%%%%% \version "2.14.2" \include "english.ly" \score { \new Staff { \set Score.proportionalNotationDuration = #(ly:make-moment 1 16) \override Glissando #'thickness = #2.5 #(define afterGraceFraction (cons 15 16)) r2 \afterGrace d''2 \glissando a'8 } \layout {} } %%%%%% %%%%%% %%%%%% %%%%%% %%%%%%%% If different glissandi recur on two or more staves, it is necessary to vertical align the end points. If the relation between the duration of two (or more) glissandi is multiple of two, it is still possible to vertical align the glissando endpoints adapting the afterGraceFraction. %%%%%% CODE FOR EXAMPLE No. 2 %%%%%% << \new Staff { \set Score.proportionalNotationDuration = #(ly:make-moment 1 16) \override Glissando #'thickness = #2.5 #(define afterGraceFraction (cons 15 16)) r2 r4 \afterGrace d''4 \glissando a'8 } \new Staff { \override Glissando #'thickness = #2.5 #(define afterGraceFraction (cons 31 32)) r2 \afterGrace a'2 \glissando e'8 } >> %%%%%% %%%%%% %%%%%% %%%%%% %%%%%%%% But if one Staff has a TUPLET, I cannot find a way to vertical align with precision: %%%%%% CODE FOR EXAMPLE No. 3 %%%%%% << \new Staff { \set Score.proportionalNotationDuration = #(ly:make-moment 1 16) \override Glissando #'thickness = #2.5 #(define afterGraceFraction (cons 3 4)) r2 \times 2/3 { r4 \afterGrace d''2 \glissando a'8 } } \new Staff { \override Glissando #'thickness = #2.5 #(define afterGraceFraction (cons 5 6)) r2 \afterGrace a'2 \glissando e'8 } >> %%%%%% %%%%%% %%%%%% %%%%%% %%%%%%%% Sorry for my very verbose and long email, I thought it could be better to provide all the steps I followed to come to the last point. Thank in advance for any suggestions, and thank every developer for this WONDERFUL SOFTWARE! Before becoming composer, I worked long time as (handwriting) copyist for a well known publisher where I developed an extreme sensibility for score cleanness and beauty. Even if I consider myself a beginner, only Lilypond gives me again the sensation to work with music notation as I did when I made handwritten partitions. I cannot dedicate so much time to learn the programm faster, but I hope I can give back to the community what I got in the last couple of years, when I will feel more advanced. Regards, TG
<<attachment: 1_glissandoToAfterGrace-oneStaff.png>>
<<attachment: 2_glissandoToAfterGrace-multipleStaves.png>>
<<attachment: 3_glissandoToAfterGrace-multipleStaves-tuplets.png>>
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user