NAME

f_arg/i_arg/s_arg/n_arg - return command-line arguments


SYNOPSIS

val = f_arg(arg_index)
val = i_arg(arg_index)
val = s_arg(arg_index)
val = n_arg()


DESCRIPTION

These functions allow command-line arguments to the CMIX command to be entered into the RTcmix scorefile environment. For example, the command:

contains 5 ingeter command-line arguments. The command: contains 2 floating-point arguments and 1 string argument.

f_arg(n) returns the nth argument as a floating-point value.
i_arg(n) returns the nth argument as an integer value.
s_arg(n) returns the nth argument as a string value.
n_arg() returns the number of arguments in the CMIX command.


ARGUMENTS
arg_index
The index of the argument to retrieve. Numbering of arguments starts at "0" for the first argument after the CMIX command.


EXAMPLES
   floatval = f_arg(3)
   stringval = s_arg(1)
   nargs = n_arg()

SEE ALSO

print, printf, rtsetparams, set_option, stringify, type