lilypond-user
[Top][All Lists]
Advanced

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

Re: Using SVG backend to implement point-and-click to braille location


From: David Kastrup
Subject: Re: Using SVG backend to implement point-and-click to braille location
Date: Thu, 20 Aug 2015 12:46:40 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Mario Lang <address@hidden> writes:

> Mario Lang <address@hidden> 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



reply via email to

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