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