Re: switching stem direction within voice to avoid collisions

2015-01-26 Thread Rutger Hofman
On 01/26/2015 02:29 PM, Pierre Perol-Schneider wrote: 2015-01-26 13:45 GMT+01:00 bart deruyter mailto:bart.deruy...@gmail.com>>: 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/Documentati

Re: switching stem direction within voice to avoid collisions

2015-01-26 Thread Pierre Perol-Schneider
2015-01-26 13:45 GMT+01:00 bart deruyter : > 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

Re: switching stem direction within voice to avoid collisions

2015-01-26 Thread Pierre Perol-Schneider
Sure it is, see: \version "2.18.2" global = { \clef "G_8" \time 4/4 } \new Staff << \global { c'2 b4 c' } \\ { \mergeDifferentlyHeadedOn \stemUp \once\override Beam.positions = #'(-.8 . 1.5) \once\stemDown c'8 g e g \once\override Beam.positions = #'(-1.5 . .5)

Re: switching stem direction within voice to avoid collisions

2015-01-26 Thread bart deruyter
thanks for the quick solution. I've adapted the example of Pierre, to a score without the use of contexts and omitted assigning a voice to the 'voiceTwo' part. That made it possible for the 'mergeDifferentlyHeadedOn' to show the half-note. Using contexts lilypond threw an error when not assigning

Re: switching stem direction within voice to avoid collisions

2015-01-26 Thread Pierre Perol-Schneider
Hi Bart, Try : \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 Beam.positions = #'(-.8 . 1.5) \once

switching stem direction within voice to avoid collisions

2015-01-26 Thread bart deruyter
Hi all, I'm typesetting something from Heinrich Albert and one exercise has three voices. To avoid collisions, they switch the direction of the stems within one voice and I haven't found how to achieve it. If someone knows where to find this in the documentation or in a snippet... The image show