On 15.06.2018 18:40, Gianmaria Lari wrote:
I'm trying to write some code in scheme. At the moment I do it using
frescobaldi and I need some help for the output.
The following code
\version "2.19.81"
#(define (f w) w)
$(f "Hello")
generates a pdf file containing "Hello".
If my function f is called passing something that is not a string like
in the following code
\version "2.19.81"
#(define (f w) w)
$(f '(a b c))
it doesn't work.
To LilyPond, this is the same as if you’d have written
#'(a b c)
so there’s neither markup nor music in this that could be printed.
How can I convert my data to a string?
It’s not clear what you want to do. What kind of data do you want to
convert into a string, and for what purpose?
You could just write
$(f "'(a b c)")
of course, but I imagine that’s not what you’re after.
Best, Simon
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user