2017-08-02 17:29 GMT+02:00 Daniel Sanmartín Nieto
<[email protected]>:
> 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:
This does not compile: there's a missing pair of brackets
> \score {
> c4 d e f
and this is not a musical expression
> #{"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
Could you be a bit more verbose about the purpose of this?
And please provide compiling ly-code.
Cheers,
Harm
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user