English

Understanding and Compressing Music with Maximal Transformable Patterns

Machine Learning 2022-02-01 v2 Information Theory Sound Audio and Speech Processing math.IT

Abstract

We present a polynomial-time algorithm that discovers all maximal patterns in a point set, DRkD\subset\mathbb{R}^k, that are related by transformations in a user-specified class, FF, of bijections over Rk\mathbb{R}^k. We also present a second algorithm that discovers the set of occurrences for each of these maximal patterns and then uses compact encodings of these occurrence sets to compute a losslessly compressed encoding of the input point set. This encoding takes the form of a set of pairs, E={P1,T1,P2,T2,P,T}E=\left\lbrace\left\langle P_1, T_1\right\rangle,\left\langle P_2, T_2\right\rangle,\ldots\left\langle P_{\ell}, T_{\ell}\right\rangle\right\rbrace, where each Pi,Ti\langle P_i,T_i\rangle consists of a maximal pattern, PiDP_i\subseteq D, and a set, TiFT_i\subset F, of transformations that map PiP_i onto other subsets of DD. Each transformation is encoded by a vector of real values that uniquely identifies it within FF and the length of this vector is used as a measure of the complexity of FF. We evaluate the new compression algorithm with three transformation classes of differing complexity, on the task of classifying folk-song melodies into tune families. The most complex of the classes tested includes all combinations of the musical transformations of transposition, inversion, retrograde, augmentation and diminution. We found that broadening the transformation class improved performance on this task. However, it did not, on average, improve compression factor, which may be due to the datasets (in this case, folk-song melodies) being too short and simple to benefit from the potentially greater number of pattern relationships that are discoverable with larger transformation classes.

Keywords

Cite

@article{arxiv.2201.11085,
  title  = {Understanding and Compressing Music with Maximal Transformable Patterns},
  author = {David Meredith},
  journal= {arXiv preprint arXiv:2201.11085},
  year   = {2022}
}
R2 v1 2026-06-24T09:04:07.718Z