Skip to main content

Module ssm

Module ssm 

Source
Expand description

Self-similarity matrix (SSM) from a per-frame feature matrix.

An SSM is the frames×frames Gram-like matrix S[i,j] = sim(x_i, x_j) where x_i is the feature vector of frame i. Homogeneous musical sections form high-similarity square blocks on the diagonal; section boundaries appear as the seams between blocks. This is the substrate the novelty curve then reads (contrast the energy-hysteresis heuristic previously in music.rs).

Functions§

self_similarity
Compute the cosine self-similarity matrix of a per-frame feature matrix.