Hi Eric
One problem can be solved easily. To get the slur to ignore the staccato
dot add immediately before the staccato note:
\once \override Script #'avoid-slur = #'outside
This puts the dot outside the slur.
The other problems are not so straightforward to solve.
Layout problems are known to occur if a grace note is the first note in a
piece, as you have found, and grace notes also appear to interfere with
other commands, like \voiceTwo and \once. Sometimes work-arounds can be
found, and in this case re-establishing \voiceTwo after the grace note seems
to give you the layout you want, if I have understood you correctly; like
this, where I've used the simpler shorthand for the Stem override:
{
\acciaccatura c'8
\voiceTwo
d'8
\stemUp
\acciaccatura c'8
\voiceTwo
\once \override Script #'avoid-slur = #'outside
d'8-.
}
Trevor D
----- Original Message -----
From: "Papa Eric" <[EMAIL PROTECTED]>
To: <lilypond-user@gnu.org>
Sent: Friday, April 04, 2008 2:11 AM
Subject: Problem with acciaccatura and articulation
Hi,
In the following code I cannot solve two problems:
-----
\version "2.11.42"
{ \voiceTwo
d'8
\acciaccatura {\once \override Stem #'direction = #up c'8} d'8
\acciaccatura {\once \override Stem #'direction = #up c'8} d'8-.
}
\layout {
ragged-last = ##t
}
-----
1) the first acciaccatura has a nice slur, but the second one is too low
because it tries to be lower than the staccato dot (I suppose). How to
tell the slur it to ignore the dot?
2) If I remove the first d'8 note, the stem direction of the d note
becomes up, as if the \once did not work well. More complete example:
\version "2.11.42"
\new Staff
<<
\new Voice { \voiceOne
f''4
}
\new Voice { \voiceTwo
% here insert d'8[ to make it work (remove next "[")
\acciaccatura {\once \override Stem #'direction = #up c'8}
d'8[
\acciaccatura {\once \override Stem #'direction = #up c'8}
d'8-. ]
}
>>
\layout {
ragged-last = ##t
}
Thanks for any hint (especially with the staccoto dot, which annoys me
more in the true score!)
Eric
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user