Paul Morris <[email protected]> writes: > Hello all, > I have a question about how to use optional arguments in scheme functions. > In my tiny example below I want to be able to leave out the 3rd argument, > but then LilyPond takes the 2nd \makeScore as the 3rd argument (which > doesn't work). I'm just curious to learn how to do this assuming there is a > way. I can always just enter "" or \default for the 3rd argument (but then > is it really optional?).
The last argument of a function is never "really" optional (the only way to get the default value is by writing \default). > Relevant docs: > http://lilypond.org/doc/v2.19/Documentation/extending/scheme-function-definitions The next one tells the story about optional arguments: <URL:http://lilypond.org/doc/v2.19/Documentation/extending/scheme-function-usage> -- David Kastrup _______________________________________________ lilypond-user mailing list [email protected] https://lists.gnu.org/mailman/listinfo/lilypond-user
