2.3.7 Void music functions

A music function must return a music expression. If you want to execute a function only for its side effect, you should use define-void-function. But there may be cases where you sometimes want to produce a music expression, and sometimes not (like in the previous example). Returning a void music expression via #{ #} will achieve that.


LilyPond — Extending v2.24.4 (stable-branch).