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.
Use DistanceMatrix to compute the distance between signals. By default, FeatureExtractor is set to "AudioFeatures" for audio signals to compute semantically significant features.
Plot the result. The label colors are determined by the category that an instrument belongs to.