[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Dynamically outputting \books
From: |
Urs Liska |
Subject: |
Re: Dynamically outputting \books |
Date: |
Thu, 10 Nov 2016 21:24:01 +0100 |
User-agent: |
K-9 Mail for Android |
Am 10. November 2016 20:36:11 MEZ, schrieb Morten Lemvigh <address@hidden>:
>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?
I think
https://git.openlilylib.org/bfsc/kayser/blob/karlsruhe/includes/lib/engrave.ily
does what you need, but I'm not sure if it's easily understandable (although I
think or well commented), especially without the code of the other included
files.
HTH
Urs
>
>Thanks,
>Morten
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>lilypond-user mailing list
>address@hidden
>https://lists.gnu.org/mailman/listinfo/lilypond-user
--
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.