lilypond-user
[Top][All Lists]
Advanced

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

Re: calculation of the total duration of a score


From: Paul
Subject: Re: calculation of the total duration of a score
Date: Wed, 7 Sep 2016 23:39:37 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

On 09/05/2016 05:01 AM, Marc Hohl wrote:

Has someone else already done something like this? I have no experience
in writing scheme engravers, so any hint would be highly appreciated.

lilypond-html-live-score does something like this by post-processing an SVG with python to add meta data to the grobs in the SVG file:
https://gitlab.com/sigmate/lilypond-html-live-score/blob/master/make-live-score#L88

I was working on porting part of that to scheme so it could be done directly. I've attached my include file. It will currently display the total duration to the log. It could be simplified in various ways if it was calculating just the total duration and not adding timing info to every grob.

It's still a work in progress and only lightly tested.

-Paul

Attachment: grob-meta-data-engraver.ily
Description: Text document


reply via email to

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