lilypond-user
[Top][All Lists]
Advanced

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

Re: note heads sharing a beam, some stems without heads


From: David Nalesnik
Subject: Re: note heads sharing a beam, some stems without heads
Date: Fri, 21 Dec 2012 08:22:38 -0600

Hi,

On Fri, Dec 21, 2012 at 8:15 AM, Pierre Perol-Schneider
<address@hidden> wrote:
> Try this :
>
>
> \version "2.16.1" % ??
> \new PianoStaff
> <<
>   \new Staff = up
>   \relative c'
>   {
>       \stopStaff
>       \override Staff.TimeSignature #'transparent = ##t
>       \override Staff.Clef #'transparent = ##t
>       \stemDown
>       \set subdivideBeams = ##t
>       \set baseMoment = #(ly:make-moment 3 16)
>       g''16[ \once \override NoteHead #'transparent = ##t g,
>       g' \once \override NoteHead #'transparent = ##t g, g']
>       \set baseMoment = #(ly:make-moment 2 16)
>       \once \override NoteHead #'transparent = ##t g,[
>       g' \once \override NoteHead #'transparent = ##t g,
>       g' \once \override NoteHead #'transparent = ##t g,]
>       s4.
>   }
>   \new Staff = bottom
>   \relative c'
>   {
>       \stopStaff
>       \override Staff.TimeSignature #'transparent = ##t
>       \override Staff.Clef #'transparent = ##t
>       \stemUp
>       \clef bass
>       \override Stem #'cross-staff = ##t
>       \override Stem #'length = #15
>       \override NoteColumn #'X-offset = #-1.2
>       g,4 s16 g4 s16
>       s4.
>   }
>>>
>

Instead of figuring out the stem length yourself, why not use the
Span_stem_engraver?  See this snippet:
http://www.lilypond.org/doc/v2.16/Documentation/snippets/staff-notation#staff-notation-cross-staff-stems

HTH,
David



reply via email to

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