lilypond-user
[Top][All Lists]
Advanced

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

Re: output some string


From: Gianmaria Lari
Subject: Re: output some string
Date: Fri, 15 Jun 2018 22:31:07 +0200



On Fri, 15 Jun 2018 at 19:33, Simon Albrecht <address@hidden> wrote:
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

I just want to output the result of the scheme function I'm learning. Don't need anything fancy but I prefer the clear pdf output instead of lilypond output log.
Thank you Simon,
g.

reply via email to

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