[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Dynamically outputting \books
From: |
David Kastrup |
Subject: |
Re: Dynamically outputting \books |
Date: |
Thu, 10 Nov 2016 20:48:31 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
Morten Lemvigh <address@hidden> writes:
> Hi,
>
> I am trying to create a procedure to create rehearsal midi files for each
> voice of a choir piece. In order to do that I need to be able to
> dynamically create \book blocks (one for each voice). Is that possible? I
> have tried to have a music function output it like:
>
> rehearsalMidi =
> #(define-music-function
> (parser location)
> ()
> #{ \book { .. } #})
>
> but that gives me an error:
>
> music function cannot return #<Book>
>
> Is there some way to dynamically create book blocks?
Use define-scheme-function instead? Not sure which LilyPond version is
required to actually have the books interpreted correctly when
encountered in the main text.
--
David Kastrup