[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Iterated batch output (exercise generator)
From: |
David Kastrup |
Subject: |
Re: Iterated batch output (exercise generator) |
Date: |
Wed, 28 Dec 2011 15:39:13 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) |
John Allsup <address@hidden> writes:
> Hi,
>
> Is there any way to iteratively generate multiple files within Lilypond
> (so that I could have a function that
> generates 10 separate pages).
>
> I can do a
> #(define output-suffix (string-append "A" (number->string num)))
> \book {
> \header {
> title = #(string-append "Exercise A" (number->string num))
> }
> \score {
> \notesa
> \layout {
> }
> }
> }
> #(define output-suffix (string-append "B" (number->string num)))
> \book {
> \header {
> title = #(string-append "Exercise B" (number->string num))
> }
> \score {
> \notesb
> \layout {
> }
> }
> }
>
> thing in a lilypond script, which generates files. What I'd like is a
> way to generate e.g. 10 or 11 files with the value determined by
> changing the number 10 or 11 within the script.
I can't make head nor tail from your description and example code.
--
David Kastrup