Re: Questions about using Scheme with Lilypond

2020-11-16 Thread Aaron Hill
On 2020-11-16 10:28 am, Tom Brennan wrote: Re: arity, the (admittedly unclear) question wasn't whether or not scheme supports multi-arity, but whether you can "splat" any list (doesn't have to be from args), into a block of lilypond code, i.e., The list splicing operators [1] are likely what

Re: Questions about using Scheme with Lilypond

2020-11-16 Thread Tom Brennan
Hi Aaron Thanks. That's very helpful. It looks like from your example you linked to that there's probably a way to do just about anything in lilypond with Scheme, and I just need to dive into the scm library files. The other part is just learning how Scheme is different from Clojure (which is curr

Re: Questions about using Scheme with Lilypond

2020-11-15 Thread Aaron Hill
On 2020-11-15 12:03 pm, Tom Brennan wrote: I'd like to create a function that would allow me to create a `bookpart` from a list of arguments. E.g., [...] Is this kind of thing possible? Yes-ish, see my post [1] last month about "returning" books and book parts. [1]: https://lists.gnu.org

Questions about using Scheme with Lilypond

2020-11-15 Thread Tom Brennan
I'd like to create a function that would allow me to create a `bookpart` from a list of arguments. E.g., ```lilypond \book { \custom_bookpart "horn" \hn_movt_one \hn_movt_two } ``` The reason is because I'd like to reuse header and page info, etc, without having to repeat those common variable na