| [ << Interfaces for programmers ] | [Top][Contents][Index][ ? ] | [ LilyPond Scheme interfaces >> ] | ||
| [ < Music functions ] | [ Up : Music functions ] | [ Simple substitution functions > ] | ||
2.1.1 Music function syntax
The general form for music functions is:
function =
#(define-music-function
(parser location arg1 arg2 …)
(type1? type2? …)
music)
where
| nth argument |
| a scheme type predicate for which |
| A music expression, optionally written in scheme, with any
LilyPond code enclosed in hashed braces
( |
For a list of available type predicates, see Predefined type predicates. User-defined type predicates are also allowed.
See also
Notation Reference: Predefined type predicates.
Installed Files: ‘lily/music-scheme.cc’, ‘scm/c++.scm’, ‘scm/lily.scm’.
| [ << Interfaces for programmers ] | [Top][Contents][Index][ ? ] | [ LilyPond Scheme interfaces >> ] | ||
| [ < Music functions ] | [ Up : Music functions ] | [ Simple substitution functions > ] | ||