lilypond-user
[Top][All Lists]
Advanced

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

Re: Parse scheme ast


From: caagr98
Subject: Re: Parse scheme ast
Date: Thu, 20 Jul 2017 18:00:43 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1

I have no idea what that specific AST comes from (did you invent it yourself?), but I think you're looking for (make-music) expressions, which are what is created from music expressions before being passed to the engravers. Check out \displayScheme (or (display-scheme-music) (talking about lisp inside parens is awkward)) and http://lilypond.org/doc/v2.19/Documentation/internals/music-expressions for more info.

On 07/20/2017 04:40 PM, Hlöðver Sigurðsson wrote:
Hi lilyponders,

I'm looking to find a way to transpile code to lilypond, I know how to generate an ast like this

((context . 0) (class . CreateContext) (unique . 1) (ops) (type . Score) (id . "\\new")) ((context . 1) (class . CreateContext) (unique . 2) (ops) (type . StaffGroup) (id . "\\new")) ((context . 2) (class . CreateContext) (unique . 3) (ops) (type . Staff) (id . "\\new")) ((context . 3) (class . CreateContext) (unique . 4) (ops) (type . Voice) (id . ""))

but I have no idea where in GUILE/lilypond this would get parsed to output. Some hints where to get started?


_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user




reply via email to

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