lilypond-user
[Top][All Lists]
Advanced

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

Re: \change staff


From: MING TSANG
Subject: Re: \change staff
Date: Fri, 19 Dec 2014 23:30:43 +0000 (UTC)

Abraham
Thank you. It works on v2.19.15 as well.
Immanuel,
Ming


On Friday, December 19, 2014 11:01 AM, "address@hidden" <address@hidden> wrote:




  1. Re:\change staff (tisimst)
  
Message: 1
Date: Fri, 19 Dec 2014 07:33:36 -0700 (MST)
From: tisimst <address@hidden>
To: address@hidden
Subject: Re: \change staff
Message-ID: <address@hidden>
Content-Type: text/plain; charset="us-ascii"

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]
<ml-node+address@hidden> 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
> ml-node+address@hidden
> To unsubscribe from Lilypond, click here.
> NAML






reply via email to

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