lilypond-user
[Top][All Lists]
Advanced

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

Re: switching stem direction within voice to avoid collisions


From: Pierre Perol-Schneider
Subject: Re: switching stem direction within voice to avoid collisions
Date: Mon, 26 Jan 2015 14:29:28 +0100

2015-01-26 13:45 GMT+01:00 bart deruyter <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)

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

 


reply via email to

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