Re: Tweaking Hairpin shape

2018-02-11 Thread David Nalesnik
Hi Stefano, On Sun, Feb 11, 2018 at 3:44 PM, Stefano Troncaro wrote: > I managed to fix it. The problem was not with the calculation of the angle, > it was with the translation of the angle to the offset that the function > applies to the vertical placement of the end-points of the hairpins. It i

Re: Tweaking Hairpin shape

2018-02-11 Thread Stefano Troncaro
I managed to fix it. The problem was not with the calculation of the angle, it was with the translation of the angle to the offset that the function applies to the vertical placement of the end-points of the hairpins. It is correct now. I also got rid of the rotation of the stencil for the case wh

Re: Tweaking Hairpin shape

2018-02-10 Thread David Nalesnik
Hi Stefano, On Sat, Feb 10, 2018 at 11:14 AM, Stefano Troncaro wrote: > Hi David, thank you for your suggestions, this is almost done! > > I decided to pass an alist to the function instead of changing the amount of > arguments based on the procedure name, mainly because if I write more angle > f

Re: Tweaking Hairpin shape

2018-02-10 Thread Stefano Troncaro
Hi David, thank you for your suggestions, this is almost done! I decided to pass an alist to the function instead of changing the amount of arguments based on the procedure name, mainly because if I write more angle functions in the future I want to be able to do so without having to temper with t

Re: Tweaking Hairpin shape

2018-02-08 Thread David Nalesnik
Hi Stefano, On Thu, Feb 8, 2018 at 4:43 PM, Stefano Troncaro wrote: > Hello again! > > I managed to modify David's translation of ly:hairpin::print to have it use > two properties, Hairpin.rotate and Hairpin.straight-end, to achieve almost > all the results I wanted. Glad you got some use out of

Re: Tweaking Hairpin shape

2018-02-08 Thread Stefano Troncaro
Hello again! I managed to modify David's translation of ly:hairpin::print to have it use two properties, Hairpin.rotate and Hairpin.straight-end, to achieve almost all the results I wanted. The idea is that Hairpin.rotate can be either a numerical value, representing the angle of rotation, or a p

Re: Tweaking Hairpin shape

2018-02-06 Thread Thomas Morley
2018-02-06 16:10 GMT+01:00 Werner LEMBERG : > >> Sure, I attached a few from here >> > > Thanks, but in this score there is not a single heavily rotated > hairpin; I would say that the differences are not of any importance. > >>

Re: Tweaking Hairpin shape

2018-02-06 Thread Stefano Troncaro
@Werner > My conclusion: It could be a useful feature to have the ends of > rotated hairpins vertically aligned. However, I wouldn't like to have > this as the default. > My thoughts exactly. I did not intend to express that I wanted this as the default, because I don't, only for a convenient op

Re: Tweaking Hairpin shape

2018-02-06 Thread Werner LEMBERG
> Sure, I attached a few from here > Thanks, but in this score there is not a single heavily rotated hairpin; I would say that the differences are not of any importance. > . Oh, and an orche

Re: Tweaking Hairpin shape

2018-02-06 Thread Stefano Troncaro
Sorry, my previous reply was rejected because of the attached images. Werner, I hope that the links are sufficient. -- Forwarded message -- From: Stefano Troncaro Date: 2018-02-06 11:05 GMT-03:00 Subject: Re: Tweaking Hairpin shape To: Andrew Bernard Cc: lilypond-user

Re: Tweaking Hairpin shape

2018-02-06 Thread Stefano Troncaro
Thank you David! I think I should be able to work something out from here, I'll post again when I have some kind of update. 2018-02-06 11:04 GMT-03:00 David Nalesnik : > Hi Stefano, > > > On Mon, Feb 5, 2018 at 11:53 PM, Stefano Troncaro > wrote: > > David and Harm, I'm really impressed by the l

Re: Tweaking Hairpin shape

2018-02-06 Thread David Nalesnik
Hi Stefano, On Mon, Feb 5, 2018 at 11:53 PM, Stefano Troncaro wrote: > David and Harm, I'm really impressed by the level of expertise you both have > showed in this thread. The function works wonderfully, and I'm really > grateful for your help! > > I feel kind of bad for asking, but I'm stuck a

Re: Tweaking Hairpin shape

2018-02-05 Thread Andrew Bernard
Hi Stefano, I face this sort of thing all the time in the new complexity scores that I set. Despite the elegance you seek - and I fully understand the vertical end point alignment you are wanting - sometimes it is easiest just to roll over and draw the lines as a path, perhaps using Postscript, or

Re: Tweaking Hairpin shape

2018-02-05 Thread Werner LEMBERG
> I wanted to make it so that the two lines that form the hairpin > would end in the same vertical line, Please show a real-world example for that. I can't remember having ever seen this... Werner ___ lilypond-user mailing list lilypond-user@gnu

Re: Tweaking Hairpin shape

2018-02-05 Thread Stefano Troncaro
David and Harm, I'm really impressed by the level of expertise you both have showed in this thread. The function works wonderfully, and I'm really grateful for your help! I feel kind of bad for asking, but I'm stuck after trying to do what I thought would be a minor tweak. I wanted to make it so t

Re: Tweaking Hairpin shape

2018-02-04 Thread David Nalesnik
Hi Harm, On Sun, Feb 4, 2018 at 6:23 PM, Thomas Morley wrote: > Hi David, > > I was going to post something similiar. > You're code is much more elegant with respect to linebreaks, great stuff. > Though, it will not work as desired if the beam/hairpin is distributed > over _three_ lines. > I've n

Re: Tweaking Hairpin shape

2018-02-04 Thread Thomas Morley
Hi David, I was going to post something similiar. You're code is much more elegant with respect to linebreaks, great stuff. Though, it will not work as desired if the beam/hairpin is distributed over _three_ lines. I've no clue how to make it work, admittedly it's a real rare case. Some inline re

Re: Tweaking Hairpin shape

2018-02-04 Thread David Nalesnik
Hi Stefano, On Sun, Feb 4, 2018 at 4:09 PM, Stefano Troncaro wrote: > Harm, I've been thinking about this, and perhaps you have an idea of how the > following can be achieved. > > A consequence of explicitly stating the degree in which the stencil has to > be rotated is that if anything changes t

Re: Tweaking Hairpin shape

2018-02-04 Thread Stefano Troncaro
Harm, I've been thinking about this, and perhaps you have an idea of how the following can be achieved. A consequence of explicitly stating the degree in which the stencil has to be rotated is that if anything changes the spacing of that system it's very likely that the degree of rotation will hav

Re: Tweaking Hairpin shape

2018-02-04 Thread Thomas Morley
2018-02-04 21:02 GMT+01:00 Kieren MacMillan : > Hi Harm, > >> See below. > > Once again, a wonderful solution/contribution. > >> 'rotation comes too late, use a stencil-override with ly:stencil-rotate >> instead. > > Is there any reason 'rotation can't come sooner for all grobs, so that > skyline

Re: Tweaking Hairpin shape

2018-02-04 Thread Stefano Troncaro
Amazing, perfect solution! Thank you very much! 2018-02-04 17:02 GMT-03:00 Kieren MacMillan : > Hi Harm, > > > See below. > > Once again, a wonderful solution/contribution. > > > 'rotation comes too late, use a stencil-override with ly:stencil-rotate > instead. > > Is there any reason 'rotation c

Re: Tweaking Hairpin shape

2018-02-04 Thread Kieren MacMillan
Hi Harm, > See below. Once again, a wonderful solution/contribution. > 'rotation comes too late, use a stencil-override with ly:stencil-rotate > instead. Is there any reason 'rotation can't come sooner for all grobs, so that skylines and spacing Do The Right Thing™? Thanks, Kieren. _

Re: Tweaking Hairpin shape

2018-02-04 Thread Thomas Morley
2018-02-04 20:30 GMT+01:00 Stefano Troncaro : > Thank you! This is a workable starting point. However, it raised a few > questions. > > 1) I noticed that rotating the grob doesn't work well with automatic > collision detection, since the grob skylines are still where they would be > for the unrotat

Re: Tweaking Hairpin shape

2018-02-04 Thread Stefano Troncaro
Thank you! This is a workable starting point. However, it raised a few questions. 1) I noticed that rotating the grob doesn't work well with automatic collision detection, since the grob skylines are still where they would be for the unrotated grob. See this example code and the attached images:

Re: Tweaking Hairpin shape

2018-02-04 Thread Phil Holmes
For your first question: http://lilypond.org/doc/v2.19/Documentation/notation/rotating-objects should help. -- Phil Holmes - Original Message - From: Stefano Troncaro To: lilypond-user Mailinglist Sent: Sunday, February 04, 2018 4:43 PM Subject: Tweaking Hairpin shape

Re: Tweaking Hairpin shape

2018-02-04 Thread Ben
On 2/4/2018 11:43 AM, Stefano Troncaro wrote: Hello everyone! I'm struggling with Hairpins this time. I can't find how to tweak the placement of it's starting and ending points. Suppose that in the following example I want to make the Hairpin follow the same slope as the Beam. Furthermore,

Tweaking Hairpin shape

2018-02-04 Thread Stefano Troncaro
Hello everyone! I'm struggling with Hairpins this time. I can't find how to tweak the placement of it's starting and ending points. Suppose that in the following example I want to make the Hairpin follow the same slope as the Beam. Furthermore, I'd like the Hairpin to start a little bit to the ri