[Top][All Lists]

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

Re: \add-score and \bookOutputName

From: David Kastrup
Subject: Re: \add-score and \bookOutputName
Date: Tue, 18 Dec 2018 16:57:02 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Gianmaria Lari <address@hidden> writes:

> Ok, tried to substitute "add-score" with "print-book-with-defaults" but I
> didn't see any midi file in the default folder. But
> print-book-with-defaults works for midi output?
> This is the code I tried:
> \version "2.19.82"
> test = #(define-void-function (music filename) (ly:music? string?)
>    #(print-book-with-defaults
>      #{
>        \book {
>          \bookOutputName $filename
>          \score $music
>          \midi{}
>        } #} ) )
> \test {a b} "MyFile"

Well, your score has no \midi block.  \book has a \midi block, but that
just is used for redefining \midi defaults (and since your \midi block
is empty, it ends up doing nothing).

How about putting that empty \midi block in the \score to let it
actually do something?

David Kastrup

reply via email to

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