The use of autochange for a single, automatically created voice is 
well-document here:

http://www.lilypond.org/doc/v2.15/Documentation/notation/common-notation-for-keyboards#changing-staff-automatically

A user recently found it quite hard to figure out how to do this properly for a 
situation with multiple voices:

http://lists.gnu.org/archive/html/bug-lilypond/2012-06/msg00029.html

I'd like to suggest enhancing the documentation with a Snippet showing how to 
use autochange with two voices.

Please add the Snippet to this section:

http://www.lilypond.org/doc/v2.15/Documentation/snippets-big-page#keyboards

Please add a link from the autochange documentation

http://www.lilypond.org/doc/v2.15/Documentation/notation/common-notation-for-keyboards#changing-staff-automatically

Cheers,
Colin Hall.

-- 

Colin Hall
\version "2.14.2"

\score
{
  \new PianoStaff
  <<
    \new Staff = "up"
    {
      \key des \major 
      \time 7/8
      \clef treble
      \set Timing.beatStructure = #'(7)
      
      <<              
        \new Voice
        {
          \voiceOne
          \autochange
          \relative c'
          {
            \stemUp
            {        
              \bar "|:" 
              ges8 aes bes c des ees f | 
              \bar ":|"
              \cadenzaOn ges1 \cadenzaOff |
              \bar "|."
            }
          }
        }
        
        \new Voice
        {
          \key des \major 
          \autochange
          {
            \relative c'
            {
              \stemDown
              {
                ges8 aes bes c des ees f | 
                \cadenzaOn ges1 \cadenzaOff
              }
            }
          }
        }
      >>
    }   
    
    \new Staff = "down"
    { 
      \key des \major 
      \clef bass 
    }
  >>
  
  \header
  {
    subtitle = ##f
    subsubtitle = ##f
    piece = \markup{ Two voices with the same notes, the R.H. has stems up and 
the L.H. has stems down}
  }
}

\score
{
  \new PianoStaff
  <<
    \new Staff = "up"
    {
      \key des \major 
      \time 7/8
      \clef treble
      \set Timing.beatStructure = #'(7)
      
      <<
        \new Voice
        {
          \voiceOne
          \autochange
          \relative c'
          {
            \stemUp
            {        
              \bar "|:" 
              ges8 aes bes c des ees f | 
              \bar 
              ":|" \cadenzaOn ges1 \cadenzaOff \bar "|."
            }
          }
        }
        
        \new Voice
        {
          \voiceTwo
          \autochange
          \relative c
          {
            \stemDown
            {
              ges8 aes bes c des ees f | 
              \cadenzaOn ges1 \cadenzaOff
            }
          }
        }
      >>
    }
    
    \new Staff = "down"
    {
      \key des \major 
      \clef bass
    }
  >>
}

\header
{
  subtitle = ##f
  subsubtitle = ##f
  piece =
  \markup
  {
    \column
    {
      \justify
      {
        Two voices with notes an octave apart. Now the noteheads are distinct 
and each voice
        has a single beam connecting all notes in that voice, even when 
autochange puts the notes into the lower stave.
      }
    }
  }
}
_______________________________________________
bug-lilypond mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to