On Fri, 15 Jun 2018 at 19:33, Simon Albrecht <[email protected]> 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.
_______________________________________________ lilypond-user mailing list [email protected] https://lists.gnu.org/mailman/listinfo/lilypond-user
