[ << Interfaces for programmers ] | [Top][Contents][Index] | [ LilyPond Scheme interfaces >> ] |
[ < Functions without arguments ] | [ Up : Music functions ] | [ Event functions > ] |
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.