On Dec 11, 2013, at 8:47 PM, Jan Rosseel <j...@rosseel.com> wrote:

>> From: Urs Liska <u...@openlilylib.org>
>> 
>> I repeat my (corrected) suggestion which could be a workaround at
> least.
>> 
>> If you can use Frescobaldi from Git you can pull and checkout the
>> "accounting" branch (not "statistics") of my Frescobaldi fork on
>> https://github.com/uliska/frescobaldi. (Ah no, you don't necessarily
> need
>> Git, you can also download a ZIP file of any branch from Github) This
> allows
>> you to copy a rudimentary statistic to clipboard on a file basis (the
> open
>> document). This contains a line
>> 
>> XX | Note
>> 
>> which you could grep or something like this to get your numbers.
>> 
>> Very hacky but _could_ work if the number of files is not too big.
>> 
>> HTH
>> Urs
>> 
> 
> I'll give that a try after our launch. It would be a good feature to
> have in Frescobaldi. It's a common feature in a word processor, and also
> belongs in a tool like Frescobaldi. 
> 
> For my purpose (score split over many files) David's suggestion likely
> works better. I assume the Frescobaldi "hack"  only counts the notes in
> the file that is open? Or does it follow the includes (recursively)?

You can set
        \override NoteHead.id = #”foobar”
then, if your file is foo.ly, invoke
        lilypond -dbackend=svg foo.ly
this will create foo.svg. Then,
        perl -ne '$x+=s/foobar//g;END{print $x,"\n";}’ foo.svg
will give you the number of notes.

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

Reply via email to