GROUPING

[GENERIC-FUNCTION]


OMTristan
Function Reference
ARGUMENTS:
  - test test [default = "<"]
  - val val [default = 0]
  - liste liste [default = (quote (1 2))]
  - fonct fonct [default = "+"]
  - format format [default = 1]

Description:

Regroups values inside a list following a predicate. When (<test> n+1 <val>) is true, then values are regrouped according to n = (<fonct> n n+1) inside every sublist.
In case <format>=1, the list is read forward: the small values are absorbed by the bigger value at their left.
In case <format>=0, the list is read backwards: the small values are regrouped (added to each other) to form one longer value.



Auto doc generation by OpenMusic 7.0 © 2022 IRCAM