[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Slur position : "catching" Llilypond values...
From: |
Dmytro O. Redchuk |
Subject: |
Re: Slur position : "catching" Llilypond values... |
Date: |
Mon, 14 Feb 2011 14:01:24 +0200 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Fri 11 Feb 2011, 16:25 David Nalesnik wrote:
> On 2/11/11, Xavier Scheuer <address@hidden> wrote:
> > On 8 February 2011 22:56, David Nalesnik <address@hidden> wrote:
> >>
> >> Hello,
> >>
> >> There probably is a better way to do this, but the function below
> >> seems to do the trick. It adds an offset to the Y-coordinate of
> >> either or both of the slur's attachment points. Setting one value of
> >> the pair to zero will leave one end-point as it is. (See attached
> >> files.)
> >>
> >> offsetPositions =
> >> #(define-music-function (parser location offsets) (pair?)
> >> #{
> >> \once \override Slur #'positions = #(lambda (grob)
> >> `(,(+ (car $offsets) (cdar (ly:slur::calc-control-points grob))) .
> >> ,(+ (cdr $offsets) (cdr (cadddr (ly:slur::calc-control-points
> >> grob))))))
> >> #})
> >
> > Nice feature!
>
> Thanks!
Great snippet, really!
> > Could you add it to the LSR? http://lsr.dsi.unimi.it/
>
> Done: http://lsr.dsi.unimi.it/LSR/Snippet?id=748
Would be great it if allows to specify which grob's positions to alter, like
this:
\offsetPositions #"Arpeggio" #'(-2 . 2)
:O)
--
Dmytro O. Redchuk
Bug Squad
Be careful! These are some commonly used abbreviations:
• LM -- Learning Manual
• NR -- Notation Reference
• IR -- Internal Reference
Look at LilyPond’s documentation to find more.
- Slur position : "catching" Llilypond values..., Éditions IN NOMINE, 2011/02/07
- Re: Slur position : "catching" Llilypond values..., Dmytro O. Redchuk, 2011/02/07
- Re: Slur position : "catching" Llilypond values..., David Nalesnik, 2011/02/08
- Re: Slur position : "catching" Llilypond values..., Xavier Scheuer, 2011/02/11
- Re: Slur position : "catching" Llilypond values..., David Nalesnik, 2011/02/11
- Re: Slur position : "catching" Llilypond values..., Phil Holmes, 2011/02/13
- Re: Slur position : "catching" Llilypond values...,
Dmytro O. Redchuk <=
- Re: Slur position : "catching" Llilypond values..., David Nalesnik, 2011/02/14
- Re: Slur position : "catching" Llilypond values..., Dmytro O. Redchuk, 2011/02/14
- Re: Slur position : "catching" Llilypond values..., Nick Payne, 2011/02/14
- Re: Slur position : "catching" Llilypond values..., David Nalesnik, 2011/02/14