lilypond-user
[Top][All Lists]
Advanced

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

Re: \mergeDifferentlyHeadedOn + \change Staff ?


From: Mats Bengtsson
Subject: Re: \mergeDifferentlyHeadedOn + \change Staff ?
Date: Tue, 06 Apr 2010 09:17:18 +0200
User-agent: Thunderbird 2.0.0.23 (X11/20090817)

If you look in ly/property-init.ly, you will see that \mergeDifferentlyHeadedOn is just a shortcut defined as
mergeDifferentlyHeadedOn =
 \override Staff.NoteCollision #'merge-differently-headed = ##t
Since you want the setting to affect both staves, you can try
\override Score.NoteCollision #'merge-differently-headed = ##t
of use \mergeDifferentlyHeadedOn in both staves.

  /Mats


Mark Polesky wrote:
In the example below, how do I get the second half-note to merge?
- Mark

\version "2.13.18"

\new PianoStaff <<
  \new Staff = "upper" {
    <<
      {
        \mergeDifferentlyHeadedOn
        b8 c' d' e'
        \change Staff = "lower" b8
        \change Staff = "upper" c' d' e'
      } \\ {
        b2 \change Staff = "lower" b
      }
    >>
  }
  \new Staff = "lower" {
    \clef bass s1
  }

------------------------------------------------------------------------

------------------------------------------------------------------------

_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user

--
=============================================
        Mats Bengtsson
        Signal Processing
        School of Electrical Engineering
        Royal Institute of Technology (KTH)
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
       Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================





reply via email to

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