lilypond-user
[Top][All Lists]
Advanced

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

Re: Text listing output in .txt file


From: Thomas Morley
Subject: Re: Text listing output in .txt file
Date: Wed, 2 Aug 2017 17:37:17 +0200

2017-08-02 17:29 GMT+02:00 Daniel Sanmartín Nieto
<address@hidden>:
> 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



reply via email to

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