lilypond-user
[Top][All Lists]
Advanced

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

Re: Voice leading lines


From: Knute Snortum
Subject: Re: Voice leading lines
Date: Sun, 27 Aug 2023 05:56:45 -0700

On Sun, Aug 27, 2023 at 5:17 AM Glenn Jarvis <glennwjars@gmail.com> wrote:
Hello list,

I am trying to add a line between notes to denote a "staff switch". However, the music is not on a single voice/staff. Problems listed after the snippet.

Here's how I did it:

%%%%%%%%%%%%%%%%%%%%%%

global = {
  \time 12/8
}

rightHand = \relative c' {
  \global
  \showStaffSwitch
  <b d a'>2.
  <<
    { \voiceTwo \change Staff = down <b e g>4. } % <-- change here
    \new Voice { \oneVoice r4. } % <-- and here
  >>
  \hideStaffSwitch
  \change Staff = up
  \voiceOne
  <e g a c>4. |
}

leftHand = \relative c, {
  \global
  \clef bass
  <c g' f'>2. s4. r |
}

\score {
  \new GrandStaff <<
    \new Staff = up \rightHand
    \new Staff = down \leftHand
  >>
}

%%%%%%%%%%%%%%%%%%%%%%%%%% 

I think the key was keeping the context alive in the parallel music (<< >>)


--
Knute Snortum



reply via email to

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