lilypond-user
[Top][All Lists]
Advanced

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

Text listing output in .txt file


From: Daniel Sanmartín Nieto
Subject: Text listing output in .txt file
Date: Wed, 2 Aug 2017 08:29:32 -0700 (MST)

Hi everyone!

Is it possible to get a .txt output with a listing of text inputs written
throughout the music file?

I mean, from something like:

\score {
c4 d e f
#{"text 1"#}
g a b c
#{"text 2"#}
d e f g
#{"text 3"#}
}

...to get a .txt file that contains:

text 1
text 2
text 3

I thought that this snippet from the displayMusic function could serve as
basis, but I didn't get anything with it.

{
  #(with-output-to-file "display.txt"
      (lambda () #{ \displayMusic { c'4\f } #}))
}

Thanks,
Daniel



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Text-listing-output-in-txt-file-tp204806.html
Sent from the User mailing list archive at Nabble.com.



reply via email to

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