lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tikz(or any) integration or drawing curved arrows


From: Francisco Vila
Subject: Re: Tikz(or any) integration or drawing curved arrows
Date: Fri, 16 Nov 2012 11:28:28 +0100

2012/11/16 Francisco Vila <address@hidden>:
> 2012/11/16 Stretto <address@hidden>:
>> I would like to draw some curved arrows between notes, sort of like slurs
>> that have arrow tips at the end. It would be even better if I could actually
>> integrate tikz code and each musical element be treated as a node... this
>> way I could leverage the power of tikz to draw non-musical symbols and
>> graphics. Just drawing curved and straight arrows will do though.
>>
>> Any ideas if this is possible?
>
> From the little I know about TikZ I can say it could be possible if
> the typesetting engine of lilypond were LaTeX, but it is not. Music is
> drawn using Postscript primitives.

That said, we already have point-and-click links in PDF for most
notation elements. They are text coordinates (line+column) taken from
input code. Something similar is what you propose and it is very
interesting; we would need something like this:

First, marking desired elements in the input. We have balloons
http://lilypond.org/doc/v2.17/Documentation/notation/outside-the-staff#balloon-help
that could inspire some new ideas on how to implement it.

Then, make lilypond to export a file which contains the coordinates of
the points you marked before.

Maybe this file could be converted to TikZ nodes and it would be
possible to create a transparent layer on top of the score, that
contains your TikZ graph. Is it possible to make a TikZ graph using
absolute paper coordinates?

-- 
Francisco Vila. Badajoz (Spain)
www.paconet.org , www.csmbadajoz.com



reply via email to

[Prev in Thread] Current Thread [Next in Thread]