lilypond-user
[Top][All Lists]
Advanced

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

Re: Connecting notes on separate staves...


From: Stephen
Subject: Re: Connecting notes on separate staves...
Date: Tue, 23 May 2006 11:50:14 -0500

Belatedly, I remember that (taking a cue from the definition of \oneVoice) there is way other than
\override NoteColumn #'force-hshift = #0.0 :
\revert NoteColumn #'horizontal-shift
 
There is a subtle distinction between the two. But what is it?
 
Stephen
----- Original Message -----
From: Stephen
Sent: Tuesday, May 23, 2006 8:43 AM
Subject: Re: Connecting notes on separate staves...

Is it easier to see my reply if I place it on top?
 
Almost, rather than fiddle with the number try using just zero:
 
      \override NoteColumn #'force-hshift = #0.0

This usually works. It is from the larger context:
 
  << {g4.( ~ | g8[ fis])}
  \\ {\override Staff.NoteCollision #'merge-differently-dotted = ##t
      g16(\< e cis ais, \change Staff =lower \stemUp fis, d, | b,,4)\!}
  \\ {\override Stem #'transparent = ##t
      s16 e ~ \noBeam
      \revert Stem #'transparent
      \once \override Stem #'flag-style = #'no-flag \stemDown e ~ \noBeam \stemUp e8. ~ |
      \override NoteColumn #'force-hshift = #0.0
      \override Stem #'flag-style = #'no-flag e8 d}
  \\ {s8 \override Stem #'flag-style = #'no-flag
      cis16 ~ \noBeam
      \override NoteColumn #'force-hshift = #0.0
      \stemUp cis8. ~ | cis8 b,}
  \\ {s4 \change Staff =lower \override Stem #'flag-style = #'no-flag
      \override Tie #'extra-offset = #'(0.25 . -0.25)
      \override NoteColumn #'force-hshift = #0.0
      fis,16 ~ \noBeam fis, ~ | fis,4 }
  \\ {s4 s16 \change Staff =lower \override Stem #'flag-style = #'no-flag \stemUp \tieUp d, ~ | d,4 }
  \\ {s8. \override Stem #'flag-style = #'no-flag \tieDown
      ais, ~ | ais,8 s }
  >>
 
I also used this number:
 
       \override NoteColumn #'force-hshift = #-0.6484375
 
Essentially a magic number of some kind that I found by trial and error.
 

Stephen
 
----- Original Message -----
From: Stephen
Sent: Sunday, May 21, 2006 12:46 AM
Subject: Re: Connecting notes on separate staves...

Sent: Saturday, May 20, 2006 5:51 PM

Hi, Rick!
 
Try this: \once \override NoteColumn #'X-offset = #1.3 <d b>8 r r
Adjust the number until you're satisfied.
 
Almost, rather than fiddle with the number try using just zero:
 
      \override NoteColumn #'force-hshift = #0.0
This usually works. It is from the larger context:
 
  << {g4.( ~ | g8[ fis])}
  \\ {\override Staff.NoteCollision #'merge-differently-dotted = ##t
      g16(\< e cis ais, \change Staff =lower \stemUp fis, d, | b,,4)\!}
  \\ {\override Stem #'transparent = ##t
      s16 e ~ \noBeam
      \revert Stem #'transparent
      \once \override Stem #'flag-style = #'no-flag \stemDown e ~ \noBeam \stemUp e8. ~ |
      \override NoteColumn #'force-hshift = #0.0
      \override Stem #'flag-style = #'no-flag e8 d}
  \\ {s8 \override Stem #'flag-style = #'no-flag
      cis16 ~ \noBeam
      \override NoteColumn #'force-hshift = #0.0
      \stemUp cis8. ~ | cis8 b,}
  \\ {s4 \change Staff =lower \override Stem #'flag-style = #'no-flag
      \override Tie #'extra-offset = #'(0.25 . -0.25)
      \override NoteColumn #'force-hshift = #0.0
      fis,16 ~ \noBeam fis, ~ | fis,4 }
  \\ {s4 s16 \change Staff =lower \override Stem #'flag-style = #'no-flag \stemUp \tieUp d, ~ | d,4 }
  \\ {s8. \override Stem #'flag-style = #'no-flag \tieDown
      ais, ~ | ais,8 s }
  >>
 
I also used this number:
 
       \override NoteColumn #'force-hshift = #-0.6484375
 
Essentially a magic number of some kind that I found by trial and error.

Stephen
 
Regards,
 
Eduardo
 
----- Original Message -----
From: Rick Hogg
Sent: Saturday, May 20, 2006 6:13 PM
Subject: Re: Connecting notes on separate staves...

Thies,
I knew about that.  It's more like, add a second voice, stem up.  Then the E, stem down, is moved to the right a little and doesn't line up with the notes it should connect to on the next staff down.  If you compile my example you'll see what I mean.  Basically, I need to be able to shift notes to the right a little to line up.  Here's the code again:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\version "2.8.3"

\layout { ragged-right = ##t }
stemExtend = \once \override Stem #'length = #14
noFlag = \once \override Stem #'flag-style = #'no-flag

upper = \relative c' {
    \clef treble
    \time 6/8
    \key a \major
    << <f a d>8-. \\ \stemDown \stemExtend \noFlag e8 >> r r
    }

lower = \relative c' {
    \clef bass
    \time 6/8
    \key a \major
    <d b>8 r r
}

\score
    {   
        \new PianoStaff <<
            \new Staff = "upper" \upper
            \new Staff = "lower" \lower
        >>
    }

%%%%%%%%%%%%%%%%%%%%%%%%%%

Thanks,
Rick


Thies Albrecht <address@hidden> wrote:
Hi Rick!

Rick Hogg schrieb:
> Can anybody help me on this? How do I move the notes on the bottom
> staff to the right?
Are you looking for something like
http://lilypond.org/doc/v2.8/Documentation/user/lilypond/Cross-staff-stems.html#Cross-staff-stems
?

Kind regards
Thies Albrecht



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


Sneak preview the all-new Yahoo.com. It's not radically different. Just radically better.


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


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


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

reply via email to

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