lilypond-user
[Top][All Lists]

## re: ugly slur

 From: Thorkil Wolvendans Subject: re: ugly slur Date: Thu, 12 Feb 2004 22:51:03 +0100

Hi there!

I'm not very experienced with this command but I'll give it a try:
If I understand this command correctly, it'll tell Lily how far away from the notehead or stem the slur will start or end.
For instance, if this is the command:

\property Voice.Slur \set #'attachment-offset = #' ((1 . 0) 0 . 0)

You actually tell Lily to let the *beginning* of the slur start 1 *something* (I don't know if it's a millimeter, a pixel or something else -- can anyone tell me that?) to the right. (Thus not AT the note but a little later)

If the command is as follows:

\property Voice.Slur \set #'attachment-offset = #' ((0 . 0) 1 . 0)

you tell Lily to let the *end* of the slur end 1 more to the right than normal.

Below I added a little example file which you should compile with Lily to see the result of what I'm talking about.

===START OF FILE===
\score{
\notes \relative c' {
\property Voice.Slur \set #'attachment-offset = #' ((0 . 0) 0 . 0)
c( d e f)

\property Voice.Slur \set #'attachment-offset = #' ((0 . 5) 0 . 0)
c( d e f)

\property Voice.Slur \set #'attachment-offset = #' ((1 . 0) 0 . 0)
c( d e f)

\property Voice.Slur \set #'attachment-offset = #' ((0 . 0) 0 . 5)
c( d e f)\break

\property Voice.Slur \set #'attachment-offset = #' ((0 . 0) 1 . 0)
c( d e f)

\property Voice.Slur \set #'attachment-offset = #' ((0 . -5) 0 . 0)
c( d e f)

\property Voice.Slur \set #'attachment-offset = #' ((-1 . 0) 0 . 0)
c( d e f)

\property Voice.Slur \set #'attachment-offset = #' ((0 . 0) 0 . -5)
c( d e f)

\property Voice.Slur \set #'attachment-offset = #' ((0 . 0) -1 . 0)
c( d e f)
}
}

===END OF FILE===

Hopefully this helps you!

With kind regards,
Thorkil Wolvendand

At 18:36 12-2-04 +0100, you wrote:
<?xml version="1.0" ?>
Mats,
Thanks a lot for your most quick reply. I have already used padding to move around dinamycs and fingering symbols. However, I have not been able to figure out how to do the same thing with slurs. When I look at the Lily internals manual I come across
attachment-offset (pair)
cons of offsets, '(LEFT-offset . RIGHT-offset). This offset is added to the attachments to prevent ugly slurs. [fixme: we need more documentation here]. . Default value: '((0 . 0) 0 . 0)
and I have not been able to figure out how to use the
\property Voice.Slur \set command
in this case.
Does anyone have any experience with this ?.
Thanks again.
Regards,
Alfredo
_______________________________________________
Lilypond-user mailing list