On Wed, 2 Aug 2017, Daniel SanmartĂn Nieto wrote:
> Is it possible to get a .txt output with a listing of text inputs written
> throughout the music file?
Does this have to be done all in Lilypond? Because it would be trivial to
write your bits of text as comments with "%" and then extract them
into a separate file using an external utility like grep or perl.
Something like:
{
c4 d e f |
% text 1
g f e d |
% text 2
}
and then
grep '%' score.ly > score.txt
which would give
% text 1
% text 2
or, more elegantly because it separates out just the comment text,
perl -ne 'print "$1" if /%\s*(.*)/' score.ly > score.txt
--
Matthew Skala
[email protected] People before principles.
http://ansuz.sooke.bc.ca/_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user