openLilyLib (was: Need help creating Scheme functions to automate includes of many scores in a project)

2018-06-27 Thread Urs Liska
Hi Aaron, thank you for the interest in openLilyLib. Am 27.06.2018 um 00:41 schrieb Aaron Hill: On 2018-06-25 22:42, Urs Liska wrote: Also, not directly. But you can make it happen. Basically you have to define some variable in the top-level file, say #(define is-main-file #t). Then you can

Re: Need help creating Scheme functions to automate includes of many scores in a project

2018-06-26 Thread Aaron Hill
On 2018-06-26 16:02, Karlin High wrote: On 6/26/2018 5:41 PM, Aaron Hill wrote: So is the only option, then, to just dive into the code at this point? Have you seen this post by Stéfano Troncaro? I had not, though that

Re: Need help creating Scheme functions to automate includes of many scores in a project

2018-06-26 Thread Karlin High
On 6/26/2018 5:41 PM, Aaron Hill wrote: So is the only option, then, to just dive into the code at this point? Have you seen this post by Stéfano Troncaro? -- Karlin High Missouri, USA

Re: Need help creating Scheme functions to automate includes of many scores in a project

2018-06-26 Thread Aaron Hill
On 2018-06-25 22:42, Urs Liska wrote: Also, not directly. But you can make it happen. Basically you have to define some variable in the top-level file, say #(define is-main-file #t). Then you can check in the included file for #(if (defined? is-main-file) That was the general idea I was

Re: Need help creating Scheme functions to automate includes of many scores in a project

2018-06-26 Thread David Kastrup
Nah writes: > Thanks. That gives me a good starting point. Will it work in a > procedure? Something like: > createLessons = #(make-scheme-function ( ... )) > > Can I assume the infinite loop to be caused by the ".ly" suffix being > the same as the suffix of the main file? If I use ".ily" suffix

Re: Need help creating Scheme functions to automate includes of many scores in a project

2018-06-26 Thread Nah
Thanks. That gives me a good starting point. Will it work in a procedure? Something like: createLessons = #(make-scheme-function ( ... )) Can I assume the infinite loop to be caused by the ".ly" suffix being the same as the suffix of the main file? If I use ".ily" suffix for all the scores

Re: Need help creating Scheme functions to automate includes of many scores in a project

2018-06-25 Thread Urs Liska
Am 25.06.2018 um 21:19 schrieb Nah: I have a project with 100+ scores, each in their own file. I tried to create a Scheme function to \include each of them. After searching the archive, I got the general idea of why my solution isn't working. However, I didn't find something like a snippet

Re: Need help creating Scheme functions to automate includes of many scores in a project

2018-06-25 Thread Urs Liska
Am 26.06.2018 um 01:25 schrieb Aaron Hill: On 2018-06-25 15:51, David Kastrup wrote: Nah writes: I have a project with 100+ scores, each in their own file. I tried to create a Scheme function to \include each of them. After searching the archive, I got the general idea of why my solution

Re: Need help creating Scheme functions to automate includes of many scores in a project

2018-06-25 Thread Vaughan McAlley
On 26 June 2018 at 05:19, Nah wrote: > I have a project with 100+ scores, each in their own file. I tried to create > a Scheme function to \include each of them. After searching the archive, I > got the general idea of why my solution isn't working. However, I didn't > find something like a

Re: Need help creating Scheme functions to automate includes of many scores in a project

2018-06-25 Thread Aaron Hill
On 2018-06-25 15:51, David Kastrup wrote: Nah writes: I have a project with 100+ scores, each in their own file. I tried to create a Scheme function to \include each of them. After searching the archive, I got the general idea of why my solution isn't working. However, I didn't find something

Re: Need help creating Scheme functions to automate includes of many scores in a project

2018-06-25 Thread David Kastrup
Nah writes: > I have a project with 100+ scores, each in their own file. I tried to > create a Scheme function to \include each of them. After searching the > archive, I got the general idea of why my solution isn't > working. However, I didn't find something like a snippet that I could > coax

Need help creating Scheme functions to automate includes of many scores in a project

2018-06-25 Thread Nah
I have a project with 100+ scores, each in their own file. I tried to create a Scheme function to \include each of them. After searching the archive, I got the general idea of why my solution isn't working. However, I didn't find something like a snippet that I could coax into what I want. I