lilypond-user
[Top][All Lists]
Advanced

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

Re: grace notes collisions


From: Trevor Bača
Subject: Re: grace notes collisions
Date: Thu, 14 Jun 2007 15:55:15 -0500

On 6/12/07, Robert Edge <address@hidden> wrote:
  I'm having trouble avoiding collisions in the following case, can anyone point
me at some relevant documentation or example code?

\version "2.10.25"


\layout{
  ragged-last = ##t
}

\score{{
  \time 2/4
  %% grace notes collide with the triplet beam here:
  gis'8[ cis''] \appoggiatura{ gis'16[ cis''] } \times 2/3 { ais'8[ gis'
\appoggiatura{ gis'16[ cis''] } ais'8~] }

  %% if I could make the notehead for the high d invisible it would solve my
problem:
  gis'8[ cis''] \appoggiatura{ gis'16[ cis''] } \stemUp \times 2/3 { ais'8[
<gis' d''> \appoggiatura{ gis'16[ cis''] } ais'8~] }

  %% however, this attempt to do that fails to compile:
  %%  gis'8[ cis''] \appoggiatura{ gis'16[ cis''] } \stemUp
  %%  \times 2/3 { ais'8[ <gis' \once \override NoteHead #'transparent = ##t
d''> \appoggiatura{ gis'16[ cis''] } ais'8~] }

}}


Hi Robert,

Probably more idiomatic is to override Beam #'positions once to a
reasonable pair value, as in the first example below. If you really
must go the way with the invisible spacer notehead, then use \tweak in
the middle of chord entry with only a property name and no grob name.

%%% BEGIN %%%

\version "2.10.25"

\score{
  \new Staff {
     \time 2/4
     gis'8 [
     cis'' ]
     \appoggiatura {
        gis'16 [
        cis'' ]
     }
     \stemUp
     \times 2/3 {
        % override Beam #'positions just before the beam begins
        \once \override Beam #'positions = #'(3.5 . 3.5)
        ais'8 [
        gis'
        \appoggiatura {
           gis'16 [
           cis'' ]
        }
        ais'8~ ]
     }


%%% END %%%


Hope this helps.


--
Trevor Bača
address@hidden

reply via email to

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