From 362b15ebbdfdc5da1563ad2d4d75ceef449e998c Mon Sep 17 00:00:00 2001 From: Trevor Daniels Date: Mon, 13 Oct 2008 09:30:03 +0100 Subject: [PATCH] Docs: NR 6.1.1 Overview of music functions - clarify vari/argi --- Documentation/user/programming-interface.itely | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Documentation/user/programming-interface.itely b/Documentation/user/programming-interface.itely index efd842df25..ba9fdc95e5 100644 --- a/Documentation/user/programming-interface.itely +++ b/Documentation/user/programming-interface.itely @@ -51,8 +51,8 @@ code is easy. The general form of these functions is @example function = -#(define-music-function (parser location @var{var1} @var{var2}... ) - (@var{var1-type?} @var{var2-type?}...) +#(define-music-function (parser location @var{var1} @var{var2}...@var{vari}... ) + (@var{var1-type?} @var{var2-type?}...@var{vari-type?}...) #@{ @emph{...music...} #@}) @@ -62,10 +62,10 @@ function = where @multitable @columnfractions .33 .66 -@item @var{argi} @tab @var{i}th variable -@item @var{argi-type?} @tab type of variable +@item @var{vari} @tab @var{i}th variable +@item @var{vari-type?} @tab type of @var{i}th variable @item @var{...music...} @tab normal LilyPond input, using - variables as @code{#$var1}. + variables as @code{#$var1}, etc. @end multitable There following input types may be used as variables @@ -74,7 +74,7 @@ other documentation specifically about Scheme for more variable types. @multitable @columnfractions .33 .66 -@headitem Input type @tab @var{argi-type?} notation +@headitem Input type @tab @var{vari-type?} notation @item Integer @tab @code{integer?} @item Float (decimal number) @tab @code{number?} @item Text string @tab @code{string?} @@ -83,9 +83,9 @@ variable types. @item A pair of variables @tab @code{pair?} @end multitable -The @code{parser} and @code{location} argument are mandatory, +The @code{parser} and @code{location} arguments are mandatory, and are used in some advanced situations. The @code{parser} -argument is used to access to the value of another LilyPond +argument is used to gain access to the value of another LilyPond variable. The @code{location} argument is used to set the @q{origin} of the music expression that is built by the music function, so that in case of a syntax error LilyPond -- 2.39.2