lilypond-user
[Top][All Lists]
Advanced

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

Re: Parentheses overrides


From: Pierre Perol-Schneider
Subject: Re: Parentheses overrides
Date: Fri, 6 Feb 2015 20:20:43 +0100

As english isn't my native language I'm not sure to find the right words.
Manual says it "computes the width of an object" (see: http://lilypond.org/doc/v2.19/Documentation/extending/callback-functions.html).
With "my" words I'd say that it'll help you to add or reduce the space before and/or after a grob.

Cheers,
Pierre

2015-02-06 20:08 GMT+01:00 James Worlton <address@hidden>:
Thanks, Pierre. That's exactly what I'm looking for. So what does the ParenthesesItem X-extent do?

James W

On Fri, Feb 6, 2015 at 12:49 PM, Pierre Perol-Schneider <address@hidden> wrote:
Hi James,

I understand the idea but I thing you missunderstand the X-extent effect.
If I follow you, you'd rather extent the note head.
So here it goes :

\version "2.19.15"

parenWider = {
  \once\override NoteHead.X-extent = #'(-1.5 . 1.3)
  \once\override Accidental.X-extent = #'(1.5 . 0)
  \once\override Accidental.extra-offset = #'(1.5 . 0)
}

\score {
  \new Staff { \parenWider \parenthesize fis'4 }
}


HTH,
Pierre

2015-02-06 19:36 GMT+01:00 James Worlton <address@hidden>:
Hi all,

I"m trying to widen the parentheses so the left brace doesn't collide with the sharp. The code I'm trying isn't working. Is this possible?

\version "2.19.15"

parenWider = {
  \once \override ParenthesesItem #'X-extent = #'(-8 . 0)
}

\score {
  \new Staff { \parenWider \parenthesize fis'4 }
}

Thanks,
James Worlton

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





reply via email to

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