lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

vertical aligning afterGrace notes on multiple staves


From: Tiresia GIUNO
Subject: vertical aligning afterGrace notes on multiple staves
Date: Thu, 9 Aug 2012 12:32:31 +0200

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
Description: PNG image

Attachment: 2_glissandoToAfterGrace-multipleStaves.png
Description: PNG image

Attachment: 3_glissandoToAfterGrace-multipleStaves-tuplets.png
Description: PNG image


reply via email to

[Prev in Thread] Current Thread [Next in Thread]