Re: Slur position : "catching" Llilypond values...

2011-02-14 Thread David Nalesnik
>> Here is my function: >> >> offsetBrokenSpanner = >> #(define-music-function (parser location name offsets) (string? pair?) >> #{ >>\overrideProperty $name #'after-line-breaking #(broken-spanner >> $offsets) >> #} >> ) >> >> #(define ((broken-spanner offsets) grob) >>(let* (

Re: Slur position : "catching" Llilypond values...

2011-02-14 Thread Nick Payne
On 15/02/11 02:02, David Nalesnik wrote: On 2/14/11, Dmytro O. Redchuk wrote: Would be great it if allows to specify which grob's positions to alter, like this: \offsetPositions #"Arpeggio" #'(-2 . 2) Hi, Dmytro -- I actually have been working on a snippet which generalizes another functio

Re: Slur position : "catching" Llilypond values...

2011-02-14 Thread Dmytro O. Redchuk
On Mon 14 Feb 2011, 09:02 David Nalesnik wrote: > On 2/14/11, Dmytro O. Redchuk wrote: > > > Would be great it if allows to specify which grob's positions to alter, like > > this: > > > > \offsetPositions #"Arpeggio" #'(-2 . 2) Oh, yes, i see --- every grob requires "it's own" function to calc in

Re: Slur position : "catching" Llilypond values...

2011-02-14 Thread David Nalesnik
On 2/14/11, Dmytro O. Redchuk wrote: > Would be great it if allows to specify which grob's positions to alter, like > this: > > \offsetPositions #"Arpeggio" #'(-2 . 2) > Hi, Dmytro -- I actually have been working on a snippet which generalizes another function -- namely, the oft-cited snippet f

Re: Slur position : "catching" Llilypond values...

2011-02-14 Thread Dmytro O. Redchuk
On Fri 11 Feb 2011, 16:25 David Nalesnik wrote: > On 2/11/11, Xavier Scheuer wrote: > > On 8 February 2011 22:56, David Nalesnik 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 o

Re: Slur position : "catching" Llilypond values...

2011-02-13 Thread Phil Holmes
- Original Message - From: "David Nalesnik" To: "Xavier Scheuer" Cc: "Llilypond EN" Sent: Friday, February 11, 2011 10:25 PM Subject: Re: Slur position : "catching" Llilypond values... On 2/11/11, Xavier Scheuer wrote: Could you add

Re: Slur position : "catching" Llilypond values...

2011-02-11 Thread David Nalesnik
On 2/11/11, Xavier Scheuer wrote: > On 8 February 2011 22:56, David Nalesnik 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

Re: Slur position : "catching" Llilypond values...

2011-02-11 Thread Xavier Scheuer
On 8 February 2011 22:56, David Nalesnik 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

Re: Slur position : "catching" Llilypond values...

2011-02-07 Thread Dmytro O. Redchuk
On Mon 07 Feb 2011, 17:51 I wrote: > On Mon 07 Feb 2011, 16:32 Éditions IN NOMINE wrote: > > Well, let me explain :-) > > > > I often use \once \override Voice.Slur #'positions = #'(a . b) to adjust > > Slur position, and most of the time, I only need to modify only one of a or > > b. > > > >

Re: Slur position : "catching" Llilypond values...

2011-02-07 Thread Dmytro O. Redchuk
On Mon 07 Feb 2011, 16:32 Éditions IN NOMINE wrote: > Well, let me explain :-) > > I often use \once \override Voice.Slur #'positions = #'(a . b) to adjust Slur > position, and most of the time, I only need to modify only one of a or b. > > I'd like to be able to "catch" the default a or b valu

Slur position : "catching" Llilypond values...

2011-02-07 Thread Éditions IN NOMINE
Well, let me explain :-) I often use \once \override Voice.Slur #'positions = #'(a . b) to adjust Slur position, and most of the time, I only need to modify only one of a or b. I'd like to be able to "catch" the default a or b value and tell Lily not to touch it, so that I could tell Lily som

Re: Slur position : "catching" Llilypond values...

2011-02-07 Thread Éditions IN NOMINE
Dmytro O. Redchuk a écrit : http://lsr.dsi.unimi.it/LSR/Item?id=639 ? Sorry, i was too quick sending this. I mean that for 'positions you might want to create something similar -- function which takes a pair and adjusts 'positions for Slur. Well, your LSR snippet is a good start.