There are two ordering examples in this directory. order-perc.pd shows you how to analyze and re-order a set of percussion sounds. Some things worth noting are: advanced feature weighting options, multi-frame analysis, and use of "chain_" messages for more efficient computation of multiple FFT-based features.

The other patch, order.pd, loads samples to RAM and analyzes by reading directly from tables using the non-real-time version of [barkSpec]. Open order.pd and try analyzing cartoons.wav in the sound folder. The patch breaks the audio into grains (you specify the size in samples), then re-orders them based on similarity using Bark spectrum.