Hwaen Ch'ugi,

Does the attached do what you want?

Mark

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
Hwaen Ch'uqi
Sent: Friday, September 05, 2014 11:38 AM
To: Simon Albrecht
Cc: [email protected]
Subject: Re: Cross-staff voice with modified context.

Greetings Simon,

Thank you so much for your response. Yes, there was a silly oversight in my
code which I have now corrected. Below is the code again followed by the
compilation messages. I have also attached the rather strange result as a
pdf.

Hwaen Ch'uqi

\version "2.18.2"

\score{
  \new PianoStaff<<
    \new Staff = up {
      \key des \major \time 2/4 \clef treble \relative c'{
        <<
          {
            f4 es
          }
          \\
          {
            s2
          }
        >>
      }
    }
    \new Staff = down \with{
      \consists "Span_arpeggio_engraver"
    }
    \key des \major \time 2/4 \clef bass \relative c'{
      \set Staff.connectArpeggios = ##t
      <<
        {
          aes,16 des \change Staff = up \voiceTwo f aes \change Staff = down
\voiceOne aes, c \change Staff = up \voiceTwo ges' aes
        }
        \\
        {
          des,,2
        }
      >>
    }
  >>
}

GNU LilyPond 2.18.2
Processing `Cross.ly'
Parsing...
Interpreting music...
Cross.ly:25:11: warning: adding note head to incompatible stem (type = 1/4)
        
          aes,16 des \change Staff = up \voiceTwo f aes \change Staff = down
\voiceOne aes, c \change Staff = up \voiceTwo ges' aes
Cross.ly:25:11: warning: maybe input should specify polyphonic voices
        
          aes,16 des \change Staff = up \voiceTwo f aes \change Staff = down
\voiceOne aes, c \change Staff = up \voiceTwo ges' aes
Cross.ly:25:57: warning: cannot find context to switch to
          aes,16 des \change Staff = up \voiceTwo f aes
                                                        \change Staff = down
\voiceOne aes, c \change Staff = up \voiceTwo ges' aes
Cross.ly:25:88: warning: adding note head to incompatible stem (type = 1/4)
          aes,16 des \change Staff = up \voiceTwo f aes \change Staff = down
\voiceOne

                aes, c \change Staff = up \voiceTwo ges' aes
Cross.ly:25:88: warning: maybe input should specify polyphonic voices
          aes,16 des \change Staff = up \voiceTwo f aes \change Staff = down
\voiceOne

                aes, c \change Staff = up \voiceTwo ges' aes Preprocessing
graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Cross.ly:25:18: warning: no viable initial configuration found: may not find
good beam slope
          aes,16
                 des \change Staff = up \voiceTwo f aes \change Staff = down
\voiceOne aes, c \change Staff = up \voiceTwo ges' aes
Cross.ly:25:93: warning: no viable initial configuration found: may not find
good beam slope
          aes,16 des \change Staff = up \voiceTwo f aes \change Staff = down
\voiceOne aes,

                     c \change Staff = up \voiceTwo ges' aes Layout output
to `Cross.ps'...
Converting to `./Cross.pdf'...
Success: compilation successfully completed
\version "2.18.2"

\score{
  \new PianoStaff<<
    \new Staff = up {
      \key des \major \time 2/4 \clef treble \relative c'{
	<<
	  { f4 es } \\
	  { s2 }
	>>
      }
    }
    
    \new Staff = down {
    \key des \major \time 2/4 \clef bass \relative c'{
        <<
	{ aes,16 des
	  \change Staff = up  f aes
	  \change Staff = down  aes, c
	  \change Staff = up  ges' aes } \\
	{ des,,2 } >>
    }
    }
  >>
}

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to