Re: Better slashed graces

2016-12-20 Thread Gilberto Agostinho
Hi Andrew, Thanks for your reply! Andrew Bernard wrote > You may not be aware of my detailed work on slashed beams and slashed > stems > that I recently contributed to openlilylib. Theres a function that > provides > fine control over the parameters of beam slashes, and which works on the > left

Re: Better slashed graces

2016-12-19 Thread Andrew Bernard
Hi Gilberto, You may not be aware of my detailed work on slashed beams and slashed stems that I recently contributed to openlilylib. Theres a function that provides fine control over the parameters of beam slashes, and which works on the left as well as the right (needed for many contemporary sco

Re: Better slashed graces

2016-12-19 Thread David Nalesnik
On Mon, Dec 19, 2016 at 3:44 PM, Gilberto Agostinho wrote: > Hi David, > > > David Nalesnik wrote >>> I think the function needs >>> something like "if there is a beam, then add a slash, else if no beam >>> then >>> no slash". Do you think you could give me a hand with that? >> >> Sure, that's no

Re: Better slashed graces

2016-12-19 Thread Gilberto Agostinho
Hi David, David Nalesnik wrote >> I think the function needs >> something like "if there is a beam, then add a slash, else if no beam >> then >> no slash". Do you think you could give me a hand with that? > > Sure, that's no problem. And it looks a bit cleaner than what I went > in the last rep

Re: Better slashed graces

2016-12-19 Thread David Nalesnik
On Mon, Dec 19, 2016 at 1:32 PM, Gilberto Agostinho wrote: > Hi David, > > First of all, thanks for your reply and for your help! > > > David Nalesnik wrote >> The problem is that there is no Beam grob, so an error is raised when >> you query its properties. > > I see! > > >> Following is a simple

Re: Better slashed graces

2016-12-19 Thread Gilberto Agostinho
Hi David, First of all, thanks for your reply and for your help! David Nalesnik wrote > The problem is that there is no Beam grob, so an error is raised when > you query its properties. I see! > Following is a simple way to use substitute values when there is no Beam > object. This modified

Re: Better slashed graces

2016-12-19 Thread David Nalesnik
Hi Gilberto, On Mon, Dec 19, 2016 at 6:43 AM, Gilberto Agostinho wrote: > Hi all, > > I just discovered a bug with my function above. It turns out the function > works well when there are two of more notes inside the \slashedGrace{}, but > when a single note is there the file does not compile. I

Re: Better slashed graces

2016-12-19 Thread Gilberto Agostinho
Hi all, I just discovered a bug with my function above. It turns out the function works well when there are two of more notes inside the \slashedGrace{}, but when a single note is there the file does not compile. I believe I need a conditional somewhere to take care of this but I don't really know

Re: Better slashed graces

2015-12-02 Thread Peter Bjuhr
On 2015-11-30 18:01, tisimst wrote: I know that beamed grace notes don't /need/ a slash, so maybe there could be a hook to turn it on or off? There already is \slashedGrace. But it doesn't work for multiple notes. Best Peter ___ lilypond-user ma

Re: Better slashed graces

2015-11-30 Thread Gilberto Agostinho
David Nalesnik-2 wrote > You could have the idea of proportionality, but relative to the width of > the beam, so the line would always cross dead-center or a fixed distance > below the beams, whether you have 1, 2, 3, That's doable, but a > little > annoying: get the number of beams, the space

Re: Better slashed graces

2015-11-30 Thread David Nalesnik
On Mon, Nov 30, 2015 at 12:08 PM, David Nalesnik wrote: > > > You could have the idea of proportionality, but relative to the width of > the beam, so the line would always cross dead-center or a fixed distance > Well, not "fixed" if proportional... ___

Re: Better slashed graces

2015-11-30 Thread David Nalesnik
On Mon, Nov 30, 2015 at 11:48 AM, Gilberto Agostinho < gilbertohasn...@gmail.com> wrote: > David Nalesnik-2 wrote > > My question would be: what is 'stem-fraction' now? What does it now > > measure? > > I have absolutely no idea, I just messed around with the variables and > expressions until I g

Re: Better slashed graces

2015-11-30 Thread Gilberto Agostinho
David Nalesnik-2 wrote > My question would be: what is 'stem-fraction' now? What does it now > measure? I have absolutely no idea, I just messed around with the variables and expressions until I got a result that looked right in the situations I was testing :) As you say, ideally this all could b

Re: Better slashed graces

2015-11-30 Thread David Nalesnik
On Mon, Nov 30, 2015 at 11:17 AM, Gilberto Agostinho < gilbertohasn...@gmail.com> wrote: > Hi David, > > As I wrote, I simply tried using some basic programming skills and trial > and > error in order to get a better looking results, and I would need some help > to make this function look decently

Re: Better slashed graces

2015-11-30 Thread David Nalesnik
On Mon, Nov 30, 2015 at 11:01 AM, tisimst wrote: > > Devs, > > Any reason this can't be incorporated into the regular distribution? I > know that beamed grace notes don't *need* a slash, so maybe there could > be a hook to turn it on or off? > > I remember an email--I believe it was from Neil Putt

Re: Better slashed graces

2015-11-30 Thread Gilberto Agostinho
Hi David, As I wrote, I simply tried using some basic programming skills and trial and error in order to get a better looking results, and I would need some help to make this function look decently (I am not very familiar with Scheme at all, nor with programming functions in LilyPond). The main th

Re: Better slashed graces

2015-11-30 Thread David Nalesnik
Hi again, On Mon, Nov 30, 2015 at 10:44 AM, David Nalesnik wrote: > Hi Gilberto, > > On Mon, Nov 30, 2015 at 10:16 AM, Gilberto Agostinho < > gilbertohasn...@gmail.com> wrote: > >> Hi all, >> >> I am trying to improve the slashed grace function because currently it >> does >> work only for a lim

Re: Better slashed graces

2015-11-30 Thread Gilberto Agostinho
Hi all, thanks for the comments, tisimst wrote > I believe it's in response to this snippet in the LSR: > http://lsr.di.unimi.it/LSR/Item?id=721 (Slashed beamed grace notes) Yes, that's the function, sorry for being unclear. My improvements above work well on most cases, but I modified that func

Re: Better slashed graces

2015-11-30 Thread tisimst
David, On Mon, Nov 30, 2015 at 9:45 AM, David Nalesnik-2 [via Lilypond] < ml-node+s1069038n184294...@n5.nabble.com> wrote: > Hi Gilberto, > > On Mon, Nov 30, 2015 at 10:16 AM, Gilberto Agostinho <[hidden email] > > wrote: > >> Hi all, >> >> I

Re: Better slashed graces

2015-11-30 Thread David Nalesnik
Hi Gilberto, On Mon, Nov 30, 2015 at 10:16 AM, Gilberto Agostinho < gilbertohasn...@gmail.com> wrote: > Hi all, > > I am trying to improve the slashed grace function because currently it does > work only for a limited amount of examples. I am trying to make the slash > always at the same position