f_arg / i_arg / s_arg / n_arg

Legacy functions for returning 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


Examples

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

Note: These functions have been replaced in Minc by the much-more-flexible command-line named arguments described here.


See Also

print, printf, rtsetparams, set_option, stringify, type, Minc