That's impressive, thanks!! I encourage the maintainers of the code to replace the triangle shape in native LilyPond with your code, given that the actual shape is pretty weird and the gap with the segment is not nice to look at...
On Tue, Jun 4, 2024 at 2:07 PM Aaron Hill <lilyp...@hillvisions.com> wrote: > On 2024-06-03 10:56 am, Paolo Prete wrote: > > Thanks Aaron, see the attached pdf as an example: > > > I may have gone too far with this. But I hope it helps. I'm replying > privately as I am not sure how best to present the material to the wider > audience. Basically, if you read each LY source file, it is a mixture > of code and comments. It is flow-of-conscience, as such it can appear > rambling at times. I wanted to leave in the some of the dirty bits, > which you might find interesting. The hope was to reveal a little of my > workflow. That way I am not just giving you the final answer but > showing the steps along the way. > > Attached are two approaches. The first was done using the built-in > markup commands as much as possible. It ran into several issues, so I > quickly turned to the second approach to write everything from scratch > in Scheme as a markup command. By comparing the code from iteration to > iteration, you should be able to see how the code evolves. > > > P.S. I do not know how much time I have, so I might not be able to > directly answer questions about the code. The final iteration in > draw-arrow-2 should be complete enough for production work if you just > want to mess about with it. > > > -- Aaron Hill