Hi Sam,

welcome to the list!
Some notes:
– For future posts, it is useful if you include code examples as an attachment, so they won’t get messed up somewhere on the way. That makes it easier for others to help. – On your first question: The problems cease to appear if you use the commands \voiceOne, \voiceTwo etc., see <http://lilypond.org/doc/v2.18/Documentation/learning/explicitly-instantiating-voices> and, if necessary, the Notation Reference section linked from there. With this, Lily will complain about not finding a good beam position, but the output is fine, so you can ignore the warning (this is normal). auto-knee-gap is used without staff changes. – <http://lilypond.org/doc/v2.18/Documentation/notation/multiple-voices> also explains temporary voices, which will answer your second question. – Don’t worry about asking elementary questions, that’s what this list is for. We’ll be happy to ease your getting a grip with Lilypond. – And, for the basics it is virtually essential to read the Learning Manual. It is very helpful and will answer many basic questions you’d else have to post on this list. Also it introduces into using the other documentation available.
Happy Ponding and HTH,
Simon

Am 05.05.2015 um 22:26 schrieb Sam Bivens:
Hi guys,

Two questions that I just can't figure out for some reason:

First, I can't manage to create kneed beams for the right hand cross-staff eighth notes in the below example. I've attempted to invoke \override Beam.auto-knee-gap, but to no avail (so it's not included here). Here's the code, and I've attached an image:
\version "2.18.2"

\language "english"


global = {

\key e \major

\time 3/4

}


up = \relative c' {

\global

<<

{

bs4 cs a |

}

\\

{

gs8 \change Staff = "down" ds \change Staff = "up" a'

\change Staff = "down" ds, \change Staff = "up"fs

\change Staff = "down" ds |

}

>>

}


down = \relative c, {

\global

\clef bass

<<

{

c4\rest b4. s8 |

}

\\

{

s4 b8. cs'16 b8 s |

}

>>

}


\score {

\new PianoStaff <<

\set PianoStaff.instrumentName = #""

\new Staff = "up" \up

\new Staff = "down" \down

>>

}



Second, is it possible to create nested multiple voices? What I mean is to insert multiple voices within a single voice of a larger multi-voice context. I need to create a third voice for one measure of a piece and I'm wondering how to do this without creating a third voice full of "s" for the entire work.
I hope my questions aren't too elementary--I'm relatively new to this!

Thanks,

--Sam


_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user
\version "2.18.2"
\language "english"

global = {
  \key e \major
  \time 3/4
}

downOne = { \change Staff = "down" \voiceOne }
upTwo = { \change Staff = "up" \voiceTwo }

up = \relative c' {
  \global
  <<
    {
      bs4 cs a |
    }
    \\
    {
      gs8 \downOne ds \upTwo a'
      \downOne ds, \upTwo fs
      \downOne ds |
    }
  >>
}


down = \relative c, {
  \global
  \clef bass
  <<
    {
      \voiceOne c4\rest b4. s8 |
    }
    \\
    {
      \voiceTwo s4 b8. cs'16 b8 s |
    }
  >>
}


\score {
  \new PianoStaff <<
    \set PianoStaff.instrumentName = #""
    \new Staff = "up" \up
    \new Staff = "down" \down
  >>
}
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to