[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: grace-note spacing and triplets
From: |
Simon Albrecht |
Subject: |
Re: grace-note spacing and triplets |
Date: |
Tue, 22 Mar 2016 19:35:24 +0100 |
Hi Jan-Peter,
On 22.03.2016 15:10, Jan-Peter Voigt wrote:
Hi all,
I have a problem spacing grace notes under a series of triplets. In
the example, the grace notes produce a big gap between the tuplets or
collide with the accidentals.
It’s an annoying bug that this isn’t handled nicely, and there is no
nice workaround either. I could only concoct the following hack:
%%%%%%%%%%%
\version "2.19.38"
pseudograce =
#(define-music-function (parser location music) (ly:music?)
#{
\tiny
\temporary\stemUp
\temporary\offset length -1 Stem
$music
\normalsize
\revert Stem.direction
\revert Stem.length
#})
% triplets played by the flute
flute = \new Staff \with {
\tupletSpan 8
beamExceptions = #'((end .
(
((1 . 24) . (3 3 3 3 3 3 3 3))
)))
} \tuplet 3/2 {
gis'16( f'' e'') d''( c'' b') a'( gis' fis')
}
% sung words with grace notes
melody = \new Staff \new Voice {
\autoBeamOff
d''8*6/10 \pseudograce { c''16*4/5( } bis'8*6/10) \pseudograce
{a'16(} gis'8)
} \addlyrics { Je -- su, ach! }
% in this score, the grace notes produce gaps between the tuplets
\score {
<<
\flute
\melody
>>
}
%%%%%%%%%%%
v2.19.25 is needed because offsetting Stem length only became possible
through issue 4516. Thanks David!
HTH, Simon