Hello,

corresponding to the NR 2.2.1, page 285 "Changing staff automatically" I have to add the \autochange before the \relative. I wrote four measures of the pieces and add the \autochange. But this breaks it completely. What am I doing wrong here?

The complete example below has one line with the \autochange in question inactivated with a comment.

Thanks,
Helge


\version "2.14.2"
\include "deutsch.ly"

staffHarp = \new PianoStaff {
 <<
   \context Staff = "up" {  % Right hand
     \clef treble \key es \major \time 3/8
     \relative c'' {  es4.( d b8 c d c4.) }
   }
   \context Staff = "down" {  % Left hand
     \clef bass  \key es \major \time 3/8
   %  \autochange
     \relative c' {
      c,16 g' c es g r |
      c,,16 g' b d g r |
      g,,16 d' b' d g r |
      as,,16 es' as c es r |
     }
   }
 >>
}

\score {
 <<
   \staffHarp
 >>
 \layout { }
 \midi { }
}


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

Reply via email to