Re: how to draw lines independent from the notes

2024-06-04 Thread Aaron Hill
On 2024-06-04 9:40 am, Paolo Prete wrote: 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... I had hoped to k

Re: how to draw lines independent from the notes

2024-06-04 Thread Paolo Prete
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 wrote: > On 2024-06-0

Re: how to draw lines independent from the notes

2024-06-04 Thread Silvain Dupertuis
To create a drawing in PostScript format, one option would be to create the drawing with Inkscape and save as PostScript (*.ps). Something to test... Inkscape can open and save Postscript format. Then one can open the file with a text editor to copy and paste the relevant shape into a Lilypond

Re: how to draw lines independent from the notes

2024-06-03 Thread Paolo Prete
Thanks Aaron, see the attached pdf as an example: On Mon, Jun 3, 2024 at 7:49 PM Aaron Hill wrote: > On 2024-06-03 10:39 am, Paolo Prete wrote: > > On Mon, Jun 3, 2024 at 7:33 PM Aaron Hill > > wrote: > > > > so feel free to > >> reach out if this is not your area of expertise. > >> > > > > Th

Re: how to draw lines independent from the notes

2024-06-03 Thread Aaron Hill
On 2024-06-03 10:39 am, Paolo Prete wrote: On Mon, Jun 3, 2024 at 7:33 PM Aaron Hill wrote: so feel free to reach out if this is not your area of expertise. That's what I just did ;-) cheers I must admit I have not followed this thread super closely. Do you have a drawing of the typ

Re: how to draw lines independent from the notes

2024-06-03 Thread Aaron Hill
On 2024-06-03 10:33 am, Aaron Hill wrote: But pretty much, once you are in a \markup context, the world's your oyster. Start with the more primitive drawing commands and build up your own shapes. Turn those into reusable markup-commands of your own. Some of this may require some Scheme code

Re: how to draw lines independent from the notes

2024-06-03 Thread Paolo Prete
On Mon, Jun 3, 2024 at 7:33 PM Aaron Hill wrote: > On 2024-06-03 10:25 am, Paolo Prete wrote: > > Thanks, this is what I was searching for! > > > > Now, for an optimal refinement: is there a way to avoid these curved > > sides > > on the arrows and can the segment be attached to the arrows withou

Re: how to draw lines independent from the notes

2024-06-03 Thread Aaron Hill
On 2024-06-03 10:25 am, Paolo Prete wrote: Thanks, this is what I was searching for! Now, for an optimal refinement: is there a way to avoid these curved sides on the arrows and can the segment be attached to the arrows without gaps? Virtually anything is possible inside of LilyPond's \mark

Re: how to draw lines independent from the notes

2024-06-03 Thread Paolo Prete
Thanks, this is what I was searching for! Now, for an optimal refinement: is there a way to avoid these curved sides on the arrows and can the segment be attached to the arrows without gaps? Cheers On Mon, Jun 3, 2024 at 3:08 PM Leo Correia de Verdier < leo.correia.de.verd...@gmail.com> wrote:

Re: how to draw lines independent from the notes

2024-06-03 Thread Leo Correia de Verdier
Expanding on Werner’s example a bit, is this something like what you’re after? \version "2.25.12" \markup \with-dimensions #'(0 . 0) #'(0 . 0) { \translate #'(20 . -20) \center-column { example-text \concat { \arrow-head #X #LEFT ##t \draw-line #'(30 . 0) \arrow-head #X #RIGHT ##t }}} <<

Re: how to draw lines independent from the notes

2024-06-03 Thread Paolo Prete
Thanks to Torsten and Werner, I'm going to use the postscript approach. But what about the segment with arrows and centered text? I googled a bit, and I also queried ChtaGPT but could not find anything useful... On Mon, Jun 3, 2024 at 11:46 AM Torsten Krueger wrote: > Paolo Prete wrote on 02

Re: how to draw lines independent from the notes

2024-06-03 Thread Torsten Krueger
Paolo Prete wrote on 02.06.2024: > How can I draw a vertical (or even diagonal) line independently positioned > from the notes in the score, that can span across staves, as shown in the > figure? For drawing lines independently from notes I do not use Lilypond directly but postscript. For this pu

Re: how to draw lines independent from the notes

2024-06-02 Thread Werner LEMBERG
> How can I draw a vertical (or even diagonal) line independently > positioned from the notes in the score, that can span across staves, > as shown in the figure? The question is formulated in a very broad way. Assuming that you want to draw something completely independent of the score, you mi

Re: how to draw lines independent from the notes

2024-06-02 Thread Paolo Prete
For the question 1), I just found this: https://lsr.di.unimi.it/LSR/Snippet?id=253 Any idea about question 2? (arrows + centered text) Thanks On Sun, Jun 2, 2024 at 7:05 PM Paolo Prete wrote: > Hello, > > How can I draw a vertical (or even diagonal) line independently positioned > from the n