lilypond-user
[Top][All Lists]
Advanced

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

Re: Getting started with music functions


From: David Kastrup
Subject: Re: Getting started with music functions
Date: Mon, 09 Mar 2020 17:07:32 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Aaron Hill <address@hidden> writes:

> On 2020-03-08 3:57 pm, Stephan Schöll wrote:
>> It looks as if the "output" (return value) of a function can only be of
>> type "music", not "score", "book" aso, which would disappoint me. Am I
>> right? Or is there a way to define/change the type of the return value?
>
> Music functions are for music.  Books and scores are not music.
>
> Scheme functions are capable of returning arbitrary information.
> Scores, for instance, can be returned and handled properly.  Books 
> cannot.
>
> => David K., do you know why the parser balks at such a top-level
> ly:book?

How can a book be distinguished from a bookpart?  Without an answer to
that question, we cannot implement this.  But have you tried explicitly
using

\book { ... }

for getting a book?

-- 
David Kastrup



reply via email to

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