|
From: | Jan-Peter Voigt |
Subject: | Re: calculation of the total duration of a score |
Date: | Fri, 16 Sep 2016 08:40:04 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
Hi Marc, nice to hear, that you have a workflow.For the record I noted two things in the file. (And if there's some spare time, I might further work on it.)
1. The durations are tagged by score and stored in an a-list, so you can first collect durations in multiple scores and display them later with a score-unique tag. 2. There are acknowledgers for volta-brackets and barlines. It should be possible to use that information for acknowledging volta repeats and ajusting the duration accordingly. Those grobs are created by engravers, but if one creates the barlines *not* with \repeat volta, but with \bar ".|:", it should be acknowledged too.
Cheers Jan-Peter Am 15.09.2016 um 08:10 schrieb Marc Hohl:
Am 14.09.2016 um 14:24 schrieb Marc Hohl: [...]I thought of writing the duration to a external file to be read from within the markup call in the score to be printed, but did not follow this route any further yet.Update: a simple test file shows that this works. I can - compute the total duration of a file designed for midi output only by means of your engraver - write the duration to a file and - read that string while processing the "print-only" file. Merging that stuff together with some Makefile should be straightforward, I hope ;-) And it has the advantage that some MIDI-related changes do not appear in the printed score, but the duration will be updated accordingly. Cheers, Marc _______________________________________________ lilypond-user mailing list address@hidden https://lists.gnu.org/mailman/listinfo/lilypond-user
calc-duration.ly
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |