lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: List of scores for book function


From: Thomas Morley
Subject: Re: List of scores for book function
Date: Sat, 13 Jan 2018 21:04:01 +0100

2018-01-13 20:33 GMT+01:00 Pierre-Luc Gauthier <address@hidden>:
> Thanks Thimothy
>
> 2018-01-13 13:49 GMT-05:00 Timothy Lanfear <address@hidden>:
>> See this thread
>
> I will.
>
> Here is where I am so far.
>
> I'm trying to get some basic iteration going on.
> Still, I'm not sure why it does not work.
>
> --
> Pierre-Luc Gauthier
>
> %%%%%%%%%%%%%%%%%%%
> \version "2.21.0"
>
> scoreI = \score {{ces''4}}
>
> scoreII = \score {{cis''4}}
>
> bookFunc = #
> (define-void-function
>  (score-list filename)
>  (list?  string?)
>  (ly:book-process #{
>    \book {
>      \header {title = #(strftime "%H:%M:%S" (localtime (current-time)))}
>
>      % $(car score-list) % This works
>      % $(cadr score-list) % This works
>
>      $(for-some-music ;; Or map? Neither works
>         (lambda (score)
>           score)
>         score-list)

    @score-list

will do what you're trying to do here.
Though I'm not sure what you're aiming at...

Cheers,
  Harm

>    }
>    #} #{ \paper {} #} #{ \layout {} #}
>    (string-append "Part-" filename)))
>
> \bookFunc #(list scoreI scoreII) "fileName"
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]