lilypond-user
[Top][All Lists]
Advanced

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

Re: How to count the number of notes in a .ly file?


From: Urs Liska
Subject: Re: How to count the number of notes in a .ly file?
Date: Wed, 11 Dec 2013 14:50:47 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.0

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

Am 11.12.2013 13:06, schrieb Jan Rosseel:
That's a good suggestion, but it fails on my scores:

Interpreting music...C:/Program Files
(x86)/LilyPond/usr/share/lilypond/current/ly/event-listener.ly:145:35:
In procedure ly:duration-length in expression (ly:duration-length
(ly:event-property event #)):
C:/Program Files
(x86)/LilyPond/usr/share/lilypond/current/ly/event-listener.ly:145:35:
Wrong type argument in position 1 (expecting Duration): #f

I don't have time now to figure out what is causing this. Neither can I
risk making changes to the scores at such a short time before our launch
concert. Ah well. No note count in my speech then. Would have been nice
to be able to know how many notes we wrote into LP for the concert.





From: Keith OHara <address@hidden>
To: address@hidden
Subject: Re: How to count the number of notes in a .ly file?
Message-ID: <address@hidden>
Content-Type: text/plain; charset=us-ascii

Jan Rosseel <jan <at> rosseel.com> writes:

Subject line says it about all. How can I count the number of notes
present
in a .ly file?

You could make a log-file as described at
<http://lilypond.org/doc/v2.16/Documentation/notation/
saving-music-events-to-a-file>
and count the occurrences of 'note' in the log-file.

Text editors can usually count words; you might do a global
search-and-
replace of note -> counted and most editors tell you how many
replacements they performed.



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




reply via email to

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