INS-PTRN

[GENERIC-FUNCTION]


Morphologie
Function Reference
ARGUMENTS:
  - seq [default = (1 2 3 4 1 2 1 5 1 2 5 3 4)]
  - ptrn [default = ((1 2 3 4) (1 2))]
  - prof [default = 1]
&optional
 
  - set  
  - marg [default = 0]

Description:

Finds the pattern(s) ptrn in list seq with or without
up to a number prof inserted items;
Return each pattern and its start positions.
Doesn't permit cross-overing of a pattern on itself.
Optional-1:
A set (list) of elements which can be inserted in the patterns.
If set empty, no constraint.
When seq is a list of values, permits a list of 'domains'
defined by a list of min and max values.
Optional-2:
If seq is a list of values, definition of a margin around the values,
more and less the value specified in set (+-);
only more the value in set (+);
or only less the value in set (-).



Auto doc generation by OpenMusic 6.3 © 2010 IRCAM