lilypond-user
[Top][All Lists]
Advanced

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

Re: newbie: help with Scheme functions


From: Aaron Hill
Subject: Re: newbie: help with Scheme functions
Date: Sun, 18 Oct 2020 13:46:26 -0700
User-agent: Roundcube Webmail/1.4.9

On 2020-10-18 1:38 pm, Dave Seidel wrote:
Very cool, thanks! I'm curious -- could aBook and aBookPart have been
written as a lambda, or is it cleaner to use a void function?

(Re-adding the mailing list on the thread for visibility.)

To get the benefits of LilyPond's Scheme functions, you would need to use one of the define-*-function family. Since it is our intention here not to return any value, we use the void function.

If you do not need any parameters, you can certainly invoke procedures like print-book-with-defaults or ly:book-add-bookpart! without wrapping them in a function. Though, without parameterization, I would wonder why you could not just use \book or \bookpart directly.


-- Aaron Hill



reply via email to

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