Re: Kneed beam with polyphonic music

2012-07-20 Thread Phil Holmes
- Original Message - 
From: Helge Kruse helge.kr...@gmx.net

To: lily-users lilypond-user@gnu.org
Sent: Thursday, July 19, 2012 6:36 PM
Subject: Kneed beam with polyphonic music



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

[snip code]

As a general rule, surround notes where the voice _must_ be specified with 
\voiceFoo and \oneVoice.  In other words, in your example, use something 
like


\new Voice { e''4 \voiceOne e \oneVoice }

as opposed to

\new Voice { \voiceOne e''4 e }


--
Phil Holmes 



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Kneed beam with polyphonic music

2012-07-19 Thread Thomas Morley
2012/7/19 Helge Kruse helge.kr...@gmx.net:
 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
 lilypond-user@gnu.org
 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

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Kneed beam with polyphonic music

2012-07-19 Thread Helge Kruse

Am 19.07.2012 22:38, schrieb Thomas Morley:


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 }

   
}


I would say I tried everything including moving the \override around. 
But since the music has more notes than that what I've posted 
(surprise!) I need the \voiceTwo. So the important thing was to switch 
temporarily to \oneVoice when an auto-knee beam is required.


Thanks
Helge

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user