7

I want to produce a score with two staves (one with treble key, one with bass key, like a piano staff) and with a single voice navigating between the two staves. If the note is lower than the middle C, then it should be displayed in the bass staff, and if it is higher, then in the treble staff.

Is there an easy way to do this automatically ?

2
  • That's not typically how music is written since the grand staff is typically meant to describe two different voices (or hands in the case of piano, keyboard, ect. ) so the voices don't really cross the staff.
    – Dom
    Apr 8, 2015 at 18:14
  • 2

1 Answer 1

8

Use /autochange:

\new PianoStaff <<
  \new Staff = "up" {
    \new Voice = "melOne" {
      \key g \major
      \autochange \relative c' {
        g8 b a c b d c e
        d8 r fis, g a2
      }
    }
  }
  \new Staff = "down" {
    \key g \major
    \clef bass
  }
>>

For more information, see http://www.lilypond.org/doc/v2.18/Documentation/notation/common-notation-for-keyboards#changing-staff-automatically

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.