//SLUGens released under the GNU GPL as extensions for SuperCollider 3, by Nick Collins, http://composerprogrammer.com/index.html
Uses succesive iterations of a k-means clustering algorithm on random data with random initial means to form break points in a 2-D space. These are then converted to wavetables in output synthesis based on the oscillator frequency.
frequency of oscillator
Initial number of data points
Maximum number of means allowed
current num means
If a trigger is received, reset source data (k-rate)
If a trigger is received, reset means (k-rate)
Proportion to soften means update. If 1.0, immediate update, 0.0 no update, proportion inbetween amount to move from the old mean position to the new mean of the allocated cluster (ie soft k-means).
Number of a Buffer which contains positions for means and data points; see examples below