[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: switching stem direction within voice to avoid collisions
From: |
Rutger Hofman |
Subject: |
Re: switching stem direction within voice to avoid collisions |
Date: |
Mon, 26 Jan 2015 14:53:48 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 |
On 01/26/2015 02:29 PM, Pierre Perol-Schneider wrote:
2015-01-26 13:45 GMT+01:00 bart deruyter <address@hidden
<mailto:address@hidden>>:
That made it possible for the 'mergeDifferentlyHeadedOn' to show the
half-note.
Ok, now I see, I missed that.
See :
http://lilypond.org/doc/v2.18/Documentation/notation/multiple-voices.html#collision-resolution
(... Known issues and warnings)
In 2.19.15, the \tweak NoteHead.stencil and NoteColumn.ignore-collision
are unnecessary. However, there are weirdish issues with voices. If the
first
voice is just the "default" voice (no \new or \context), havoc results
if I specify \mergeDifferentlyHeadedOn (or even \time 4/4) *before* the
\voiceOne in that voice, but things are fine if I specify \voiceOne first.
???
Rutger
So here again, with contexts :
\version "2.18.2"
global = { \clef "G_8" \time 4/4 }
\new Staff <<
\global
\context Voice = "high" {
\voiceOne
c'2 b4 c'
}
\context Voice = "middle" {
\voiceThree
%\override NoteColumn.force-hshift = #0
\override NoteColumn.ignore-collision = ##t
\mergeDifferentlyHeadedOn
\override Beam.positions = #'(-.8 . 1.5)
\once\stemDown
\tweak NoteHead.stencil #f
c'8 g e g
\override Beam.positions = #'(-1.5 . .5)
\once\stemDown b[ g]
\override Beam.positions = #'(-1 . .5)
\once\stemDown c' g
\revert Beam.position
}
\context Voice = "low" {
\voiceTwo
e4 e d e
}
Cheers,
Pierre