lilypond-user
[Top][All Lists]
Advanced

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

Re: Forcing hshift not working...


From: James Bailey
Subject: Re: Forcing hshift not working...
Date: Wed, 30 Dec 2009 22:40:04 +0100

You're right, my apologies. The problem here is that lilypond doesn't accomodate for an extra voice on the staff. You want to have it *look* partially like two voices in the upper staff, and then three voices. I would input it the way it looks like the voices work (which may or may not be how the voices are).

This solution probably doesn't work well for your input:
\version "2.12.3" \include "deutsch.ly"

\relative b' {
   \time 3/4
   \key as \major
   <<
      {
         b4 f4. g8
         b4( as2)\fermata
      }\\{
         f2.
         es2.
      }\\{
         \voiceFour
         \shiftOff
         des2.~
         \shiftOn
         des4( \shiftOff c2)\fermata
      }
   >>
}

I was able to jerry-rig the same results by simply adding proper voice definitions to your file:

\version "2.12.2"

global = { \key aes \major \time 3/4 }

upperA = \relative c'' {
  bes4 f4. g8
  bes4( aes2)\fermata
}

upperB = \relative c' {
  f2.
  ees2.
}

lowerA = \relative c' {
  \change Staff = "upper"
  \voiceFour
  \shiftOff
  des2.~
  \shiftOn
  des4( \shiftOff c2)_\fermata
}

lowerB = \relative c {
  g8[ aes] bes4 ees4 ~ << { ees2.\fermata }\\{ aes,2._\fermata} >>
}

\score {
  <<
    \new PianoStaff <<
\new Staff = "upper" << \global \clef treble << \upperA \\ \upperB >> >> \new Staff = "lower" << \global \clef bass << \lowerA \\ \lowerB >> >>
    >>
  >>
}

If you want to, now you can add \once \override NoteColumn #'force- hshift = #-1.0 where you want, and it should work.


On 30.12.2009, at 21:58, Alberto Simões wrote:



On 30/12/2009 20:58, James Bailey wrote:
The problem wasn't finding the collision. The problem was figuring out what's going on in the other voices. There are no measure numbers, so I
can't see what the other voices are doing at the same time (often
problems in one voice are caused by something in another voice). So, if you can send an example that shows the problem, I'll be more than happy
to look at it and help you find a solution.

I would say you commented without looking to the attachment...


On 30.12.2009, at 21:39, Alberto Simões wrote:



On 30/12/2009 20:01, James Bailey wrote:
If you can show this in a one measure example, I'd more than willing to help you, but trying to find out where the problem is, amidst all of
your voices is a bit more work than I'm willing to put in.

Please check the attachment.
You can grep for COLISION to find it faster.

THanks

On 30.12.2009, at 20:43, Alberto Simões wrote:

Hey

On 30/12/2009 19:38, Nick Payne wrote:
On 31/12/09 06:21, Alberto Simões wrote:
\once \override NoteColumn #'force-hshift = #-1.0
I have sometimes come across the same problem and find that adding

\once \override NoteColumn #'force-hshift = #0.01

to the other voice(s) will get the shift to happen.

Just tried that and it did not happen. Added just to the voice in the
collision, then added in all voices, but nothing...

Thanks
Alberto

--
Alberto Simões


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


--
Alberto Simões<foo.ly>


--
Alberto Simões





reply via email to

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