Mario Lang <ml...@delysid.org> writes:

> Mario Lang <ml...@delysid.org> writes:
>
>> I am using the LilyPond SVG backend in combination with Qt's SVG
>> support.  While Qt's SVG module does not implement any support for
>> <a> elements, it has a way to click on svg elements with an id
>> attribute.  What I did was to parse the SVG to XML, and walk the tree
>> for all <a> elements, setting an id attribute on the inner path
>> element.  While LilyPond's point-and-click does only refer to the
>> location in the *LilyPond* file, I added comments after every emitted
>> lilypond expression to be able to point back to the braille music
>> code location which was actually responsible for the generation of
>> that LilyPond code.  A long story short, I have point-and-click now,
>> which repositions the editing cursor in my braille editing window if
>> you click a note in the LilyPond based SVG display below.

"A long story short": I cannot avoid the impression that the story
should have been shorter from the start, namely that one would have
hoped for more parts of LilyPond being prepared for working with
multiple media and expressions so that coding this application would
have been more straightforward.

As it stands, LilyPond is not really well-suited for manipulating music
on a symbolic level in anything but its own terms.

> I now have a live demo of this project online:
> https://www.youtube.com/watch?v=TjfKDJm_xmI

Thanks for keeping us updated on your progress!

-- 
David Kastrup

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to