lilypond-user
[Top][All Lists]
Advanced

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

Re: Problem with \showStaffSwitch


From: Noeck
Subject: Re: Problem with \showStaffSwitch
Date: Fri, 19 Sep 2014 22:16:06 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1

Hi Jacques,

you need to have notes both before and after such a switch in your
voice. But in your example you change the staff twice but you have no
notes before the first staff change and no notes after the second.

This example works for me (the second switch is visible):

PianoRHVoiceTwo =
<<
  {
    cis4 b8 [ ais ] b4
  }
  \new Voice {
    \voiceOne
    \showStaffSwitch
    \change Staff = down
    fis2 fis4
    \change Staff = up
    fis4
  }
>>

\new PianoStaff <<
  \context Staff = "up" <<
    \context Voice = "PianoRHVoiceOne" { \time 3/4 \voiceOne a'2. }
    \context Voice = "PianoRHVoiceTwo" { \voiceTwo \PianoRHVoiceTwo }
  >>
  \context Staff = "down" <<
    { \clef "bass" }
    \context Voice = "BassVoice" { \voiceThree fis,2. }
  >>
>>


Please post working minimal examples in future, because it makes it a
lot easier to help.

Joram



reply via email to

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