lilypond-user
[Top][All Lists]
Advanced

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

Re: grace-note spacing and triplets


From: Jan-Peter Voigt
Subject: Re: grace-note spacing and triplets
Date: Wed, 23 Mar 2016 09:35:58 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0

Hi Simon,

thank you for your snippet! In my case, I will use the extra-offset variant, but I'll take yours for future use :-)

As there is a whole orchestra between flute and voice, I use this as acceptable tweak:

  \once \override NoteHead.extra-offset = #'(-1.5 . 0)
  \once \override Stem.extra-offset = #'(-1.5 . 0)
  \once \override Flag.extra-offset = #'(-1.5 . 0)
  \once \shape #'((-1.5 . 0) (-1.1 . -0.3) (-.7 . -0.3) (-0.3 . 0)) Slur

If one is interested, I attached a file, where I use the edition-engraver to apply this tweak.

Cheers
Jan-Peter

Am 22.03.2016 um 19:35 schrieb Simon Albrecht:
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

Attachment: grace-spacing-question.ly
Description: Text Data


reply via email to

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