lilypond-user
[Top][All Lists]
Advanced

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

Re: Attachment of beam to stems


From: Torsten Hämmerle
Subject: Re: Attachment of beam to stems
Date: Sat, 12 May 2018 03:04:01 -0700 (MST)

Hi Urs,

This turned out to be a bit tricky, because stems and beams are strictly
coupled together in a way that the outer beams will always start/end at the
end of stems. And vice versa: Changes to beam positioning will always bring
along stem length changes.
Beam positioning with all the quanting issues (sit/straddle/hang...) doesn't
make it easier, either.

Therefore, the only solution I could come up with is to use parallel
contexts: one for the "ordinary" stems and another for the somewhat
squeezed-in-between knee-gap beam.
But, after all, you get away without having to define your own stencil :)

(1) ignore note collisions
(2) set auto-knee-gap to 0
(3) empty all the Stem details
(4) use crotchets for the "regular" stems, but scaled to semiquavers for the
right timing/spacing
(5) initiate a new new Voice for the parallel knee-gap-music to prevent
stems from being mixed up.

%%%%
{
  \override NoteColumn.ignore-collision = ##t
  \once\override Staff.Beam.auto-knee-gap = #0
  \once\override Staff.Stem.details = #'()
  << { gis'4*1/4 e'' } \new Voice { gis'16[ e''] } >>
  \revert NoteColumn.ignore-collision
}
%%%%

<http://lilypond.1069038.n5.nabble.com/file/t3887/beam-attachment.png> 

Final adjustments to the beam could be made by using extra-offset.

HTH,
Torsten



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html



reply via email to

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