Urs Liska <u...@openlilylib.org> writes: > Hi all, > > I would like to have two optional arguments in a music function. My > current approach fails, and I don't know if I'm doing anything wrong or > if I'm trying the wrong thing in the first place.
When all else fails, read the manual, in this case the extension guide. 2.2.2 Scheme function usage --------------------------- Scheme functions can be called pretty much anywhere where a Scheme expression starting with ‘#’ can be written. You call a scheme function from LilyPond by writing its name preceded by ‘\’, followed by its arguments. Once an optional argument predicate does not match an argument, LilyPond skips this and all following optional arguments, replacing them with their specified default, and ‘backs up’ the argument that did not match to the place of the next mandatory argument. Since the backed up argument needs to go somewhere, optional arguments are not actually considered optional unless followed by a mandatory argument. [...] -- David Kastrup _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user