Dynamic Time Warping in PureData (alpha) from PedroLopes on Vimeo.

This shows a possible implementation of a DTW as a pd external – written in ANSI C. For this demo there are 8 samples that are used as gesture patterns, the algorithm tries to find the best gesture for the sampled input. Feel free to ask me for the code, unfortunately it has never been polished to be a easy working external (e.g., the array data is read from disk, whereas it should come from function arguments on Pd side).

Dynamic Time Warping external for Pure Data [c, pd, DTW]