That does it. I was trying to think of a way to place something invisible
as an anchor, but I'm not learned enough at this yet.
But the horizontal shift is now a bit big :-)
--
Phil Holmes
----- Original Message -----
From: "Alexander Kobel" <n...@a-kobel.de>
To: "Phil Holmes" <m...@philholmes.net>
Cc: "Dmytro O. Redchuk" <brownian....@gmail.com>; <t...@tomcloyd.com>;
"Lilypond" <lilypond-user@gnu.org>
Sent: Friday, April 02, 2010 12:08 PM
Subject: Re: horizontal shift of note column not working
Phil Holmes wrote:
I've cut Tom's code down quite a bit to try to understand the issue,
since I've been trying to do something similar. I hope this is easier to
follow.
It's clear that the reason that the rest collides with the note is that
the rest has been shifted right to avoid colliding with earlier notes.
So what's then needed is a command to shift the note right. When I
looked, I couldn't find one, so any guidance would be appreciated by me,
too.
Okay, so since I'm at it: to give the note some anchor, add an invisible
note in some other voice as follows:
\once \override Voice.Rest #'extra-offset = #'(2.5 . 0) a2\rest
<<
{ \once \override NoteColumn #'force-hshift = #8.0 b4-0 } \\
{ \hideNotes g4 \unHideNotes }
>> |
(That should replace the whole measure in Tom's original example.) The g
note kind of "allocates" some position for the whole chord or beat, w.r.t.
which the force-hshift works.
HTH,
Alexander
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user