lilypond-user
[Top][All Lists]
Advanced

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

Re: \change staff


From: tisimst
Subject: Re: \change staff
Date: Fri, 19 Dec 2014 07:33:36 -0700 (MST)

Try this. I know there are multiple ways for doing this (like changing beam-knee-length, or whatever), but it's a quick hack that works (sorry it's for 2.18.2, but I think you can convert it back):

%<-------------- SNIP -----------------

\version "2.18.2"
\language "english"
right = { 
  \time 4/4 \key ef\major
  r4 af16 c' ef' af' <bf ef'g>8 ef' <af c' ef' af'> ef' |%m52
  <bf ef' f' g'>1 |%m53 
  s2. \bar"|." %m54          
}

left = {
  \time 4/4 \key ef\major
  af,8 ef ~ ef4 g,4 f | 
  ef,16 bf, ef f 
  \once \override Beam.positions = #'(4.25 . 5.75)
  \stemUp g bf \change Staff = "right" \stemDown ef' f' 
  \stemNeutral g' bf' ef'' f'' <g' bf' ef'' f'' g''>4~\arpeggio | 
  << {q2.} \new Voice { \change Staff ="left" r2 r4 } >> \bar"|." %m52-54
}

\score {
  \new PianoStaff \with {
    instrumentName = "Pno."
    shortInstrumentName = "Pno."
  } <<
    \new Staff = "right" \with {
      midiInstrument = "acoustic grand"
    } \right
    \new Staff = "left" \with {
      midiInstrument = "acoustic grand"
    } { \clef bass \left }
  >>
  \layout { }
  \midi { }
}

%<-------------- SNIP -----------------

HTH,
Abraham

On Fri, Dec 19, 2014 at 7:18 AM, MING TSANG [via Lilypond] <[hidden email]> wrote:
Dear ponders,

I am having hard time to code lilypond to produce the original score:
1.  \change staff did not produce the same as the original
2.  how to code the last bar

Thanks in advance.

Immanuel,
Ming.




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

2014-12-18_222720_original.png (364K) Download Attachment
2014-12-18_223006_lilycode.png (18K) Download Attachment
test_change-staff.ly (1K) Download Attachment



If you reply to this email, your message will be added to the discussion below:
http://lilypond.1069038.n5.nabble.com/change-staff-tp169515.html
To start a new topic under User, email [hidden email]
To unsubscribe from Lilypond, click here.
NAML


View this message in context: Re: \change staff
Sent from the User mailing list archive at Nabble.com.

reply via email to

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