lilypond-user
[Top][All Lists]
Advanced

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

Re: \crossStaff and \stemDown


From: Thomas Morley
Subject: Re: \crossStaff and \stemDown
Date: Thu, 13 Dec 2012 23:39:39 +0100

2012/12/13 Eluze <address@hidden>:
> ornello wrote
>> Hi all,
>>
>> how do I write a cross-staff chord with stems down? In the following
>> fragment I want to connect the eighth notes of the upper staff to the
>> eighth notes in the lower staff, but not to the quarter note in the lower
>> staff:
>
> well - I think originally the idea was to display chords over two staves
> (and nothing more)!
>
> the only thing I found with a quick search in LilyPond's lists is this
> contribution:
>
> http://lilypond.1069038.n5.nabble.com/How-to-cross-staff-beam-different-length-notes-in-a-chord-td137328.html#a137349
>
> maybe this is adaptable!?
>
> Eluze
>
>
>
> --
> View this message in context: 
> http://lilypond.1069038.n5.nabble.com/crossStaff-and-stemDown-tp137487p137630.html
> Sent from the User mailing list archive at Nabble.com.
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user

Hi Dominik,

inspired by
NR 1.5.2 Multiple voices - Collision resolution
http://lilypond.org/doc/v2.17/Documentation/notation/multiple-voices#collision-resolution
I've a hackish workaround for you.

\version "2.16.1"

\paper {
        system-system-spacing #'basic-distance = #30
}

  \new PianoStaff <<
    \new Staff { \repeat unfold 4 { c'1 \break } }
    \new Staff { \repeat unfold 4 { c'1 \break } } >>


\version "2.16.0"

\layout {
  \context {
    \Score
    autoBeaming = ##f
  }
  \context {
    \PianoStaff
    \consists #Span_stem_engraver
  }
}

{
  \new PianoStaff <<
    \new Staff {
      \stemDown
      \crossStaff { <b' d''>8 <b' d''>8 }
      s2. |
    }
    \new Staff <<
      \clef bass
      \new Voice {
        \voiceOne
        \stemDown
        <e' g'>8 [ <e' g'>8 ]
        s2. |
      }
      \new Voice {
        \voiceTwo
        \stemDown
%% Inserting a heavily scaled spacer rest.
%% Scaling the next note to fit.
%% Note that you have to set the duration of the next note/rest explicitly.
        s4*1/1000 f,4*999/1000
        s2. |
      }
    >>
  >>
}


This pushes the bottom voice out of the NoteColumn, so it will be
disregarded by the Span_stem_engraver.
You could use \shiftOn, too. But I think this would be far too much.

HTH,
  Harm



reply via email to

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