WILDCARD-RULE

[GENERIC-FUNCTION]


OMCS
Function Reference
ARGUMENTS:
  - function function  
&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 rule out of it. The inputs to the function
will be called ?1 ?2 ?3.... ?n. 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 ?1 and ?2,
and input 3 will be used for the value of variable1.



Auto doc generation by OpenMusic 7.1 © 2022 IRCAM