Compute Similarity of Instrument Recordings
Built-in feature extraction and distance metric functions are tailored to audio objects in order to meaningfully compare signals.
Prepare a small collection of instrument recordings from ExampleData.
Use AudioDistance to measure the distance between two signals using the Euclidean distance computed on amplitude values.
Measure the Euclidean distance between spectral components.
Plot the result. The label colors are determined by the category that an instrument belongs to.