hi, using the echonestP5 library by melka i want to work with musical timbre data provided by the Echo Nest API.
Basically for every event in an analyzed song, it spits out a segment object containing a float[12] with arbitrary values in it, ranging from -x to +x. So i'm having a lot of these arrays, with values inside representing certain aspects of timbre (index 0 is average loudness, index 1 is brightness, index 2 is 'flatness' etc...).
I'd like to be able to compare the contents of these arrays for similarity, i.e.
need a way to find out how this:
Code:{10, 30, 120, 40, 20, -80, 20, 0}
is more similar to this:
Code:{12, 20, 140, 30, 60, -10, 30, 4}
than to this:
Code:{-20, 60, 10, -10, 10, -10, 30, -80}
any suggestions? the values in these arrays are weighted somehow, so i can't just sum them up and look at the difference... the weighting should make it into the similarity comparison....