INDEX-RULE

[GENERIC-FUNCTION]


OMCS
Function Reference
ARGUMENTS:
  - function function  
  - index-numbers list [default = (quote (1))]
&optional
 
  - doc rule doc [default = ""]
  - variable1 variable1 [default = (quote no_input)]
  - variable2 variable2 [default = (quote no_input)]

Description:

Takes any function and creats a pmc index rule out of it. The inputs to the function
will be assigned to the index numbers given in the list of index-numbers (and the index numbers
must be exactly as many as arguments to the function). The function
migth be an OM patch in the lambda state.

A rule should output either true or false, an heuristic rule should output a number.

If the inputs variable1 and/or variable2 are used, the last inputs to the rule will
always get the values from these inputs in the place of the search variable (i.e.
if variable1 is used, and the rule has 3 inputs, input 1 and to will be used for the first
and second index variable, and input 3 will be used for the value of variable1.



Auto doc generation by OpenMusic 7.1 © 2022 IRCAM