Let me know how that works. Sadly, computing the mean of a cluster its a lot more awkward than it seems. I’m sure this is not the optimal approach, but I remember struggling with this over in this thread, writing my process here.
I plan on adapting more, I just struggle when it comes to some of the sound generating things (e.g. polyphonic sample playback) in pd.
For dk.corpusclustermatch it’s fairly straightforward. The only fussy bits of the patch is the sorting of the clusters by different criteria. Independent of that, it’s just vanilla clustering from FluComa stuff, then selecting a random item from each cluster.