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 13:15:50 +0100

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\stemDown 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
  }
>>


HTH,
Pierre

2015-01-26 12:55 GMT+01:00 bart deruyter <address@hidden>:
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 shows what I want to achieve.

thanks,

Bart


_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user



reply via email to

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