lilypond-user
[Top][All Lists]
Advanced

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

Re: Kneed beam with polyphonic music


From: Thomas Morley
Subject: Re: Kneed beam with polyphonic music
Date: Thu, 19 Jul 2012 22:38:48 +0200

2012/7/19 Helge Kruse <address@hidden>:
> Hello,
>
> I need to switch the staff for some purposes. To avoid clash with other
> notes I want to use a kneed beam. For this staff switch. Unfortunately I
> have also polyphonic music.
>
> How can I enable the kneed beam for the quavers in music below?
>
> Regards
> Helge
>
> top = \change Staff = "1"
>
> bottom = \change Staff = "2"
>
>
> % looks as it should, but don't have the voice one line.
>
> musicA = \relative c {
>   \override Beam #'auto-knee-gap = #1
>
>   \bottom c8 g' \top e' c'
>
> }
>
>
> \score {
>
>   \new PianoStaff <<
>
>     \new Staff = "1" { \musicA }
>
>     \new Staff = "2" { \clef bass s4 c }
>
>>>
>
> }
>
>
> % following won't produce a kneed beam.
>
> musicB = \relative c {
>
>   \override Beam #'auto-knee-gap = #1
>
> <<
>
>     \new Voice { \voiceOne e''4 e }
>
>   \\
>
>     \new Voice { \voiceTwo \bottom c,,8 g' \top e' c' }
>
>>>
>
> }
>
> \score {
>
>   \new PianoStaff <<
>
>     \new Staff = "1" { \musicB }
>
>     \new Staff = "2" { \clef bass s4 c }
>
>>>
>
> }
>
>
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user

Hi Helge,

how about:

\version "2.14.2"

top = \change Staff = "1"
bottom = \change Staff = "2"

musicB = \relative c {
<<
    \new Voice { \voiceOne e''4 e }
    \new Voice { \override Beam #'auto-knee-gap = #1 \bottom c,,8 g'
\top e' c' }
>>
}

\score {
  \new PianoStaff <<

    \new Staff = "1" { \musicB }
    \new Staff = "2" { \clef bass s4 c }

  >>
}


-Harm



reply via email to

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