SORT+SELECT

[GENERIC-FUNCTION]


OMPitchField
Function Reference
ARGUMENTS:
  - lst the list  
  - n select how many? [default = 0]
&optional
 
  - test test [default = <]
  - key key  

Description:


Sorts list and selects the N elements at the top of the list. If certain
elements score identically on the key used for sorting, and N is such that
some but not all of these elements should be selected, then this part of
the selection is made randomly.

A function icon or subpatch icon in 'lambda' mode can be connected to <test>
and <key>.



Auto doc generation by OpenMusic 6.3 © 2010 IRCAM