Methods of Automated Music Comparison Based on Multi-Objective Metrics of Network Similarity
Abstract
:Featured Application
Abstract
1. Introduction
2. Background
2.1. Prerequisites
- —the frequency of the i-th note (, where −1 is used as a rest representation),
- —the duration of the i-th note (e.g., in seconds or the length of a note: whole note, half note, quarter note, etc.),
- —the point in the piece where the i-th note starts (number of seconds since the piece started or a measure number).
2.2. Graph and Network Representation of Music
2.3. Musical Piece Network Representation Similarity—Current State-of-the-Art
3. Materials and Methods
3.1. Metrics for Calculating Music Similarity
3.2. Structural and Quantitative Metric of Network Similarity
3.3. Methods of Comparison by Solving a Multi-Objective Optimization Problem
3.4. Application of the Structural and Quantitative Metric of Network Similarity to Music Comparison
- The analyzed graphs always have 13 vertices. In European classical musical harmony, an octave is built of 12 semitones + there is a separate vertex for rests in the graph. Vertices representing notes that are not present in the piece are isolated vertices (i.e., they are not interlinked to other vertices—they have degree 0). As far as graph visualization and arrangement generation are concerned, they could be removed from the structure; however, in the problem of examining similarity, their presence is dictated by the desire to ensure the stability of the graph mapping into the adjacency matrix. This makes the matrix have a constant size of 13 × 13, and using Formula (6), one can always specify that the first row is for note C, the tenth for note A, and the thirteenth for the rest.
- In the problem under examination, only one vertex function (describing the frequency of the note represented by this vertex occurring in the piece) and exactly one edge function is used (describing the frequency of the sequence of the note represented by the directed edge’s antecedent occurring in the piece before the note represented by the consequent). This slightly simplifies the method, because the matrix vectors are always single-element.
- The vertex and edge functions described in the graph representation of a piece of music are logically interlinked. They both describe the multiplicity of selected “phenomena in the piece” (respectively, the occurrence of a specific note, the occurrence of a specific sequence of notes). Specifically, the value of the vertex label is equal to the sum of the weights of the labels entering it, i.e., (where —the set of directed edges entering vertex v or undirected edges incident with vertex v). It can therefore be assumed that their values are intercorrelated, and, consequently, the calculated similarity is similar for both measures of quantitative similarity. The only difference may occur in the vertex corresponding to the first note of the piece (the value of the vertex label will be 1 point greater than the sum of the label values of the directed edges entering that vertex). In regard to the large pieces of music analyzed in this article, this is a negligible difference, as shown in Section 4.
4. Results
4.1. Dataset
- J. S. Bach—Toccata and Fugue in D Minor (BWV 565);
- J. Pachelbel—Canon in D;
- M. Leontovych—Shchedryk (a.k.a. P. Wilhousky—Carol of the Bells);
- F. Chopin—Nocturne Op. 9 No. 2;
- L. van Beethoven—Für Elise (WoO 59);
- L. van Beethoven—4-th movement of IX Symphony Op. 125 (Ode to Joy).
- N. Rota—The Godfather;
- J. Williams—Harry Potter (Hedwig’s Theme);
- C. Mansell—Requiem for a Dream (Lux Aeterna);
- H. Shore—The Hobbit (Far over the Misty Mountains Cold).
- F. Sinatra—My Way;
- Adele—Rolling in the Deep;
- E. Sheeran—Thinking out Loud;
- T. Britten—UEFA Champions League theme (violin part);
- T. Britten—UEFA Champions League theme (vocal part);
- The Beatles—Yellow Submarine;
- The Beatles—Yesterday.
- Europe—The Final Countdown;
- Metallica—Nothing Else Matters;
- Linkin Park—Numb;
- Queen—We Will Rock You.
4.2. Obtained Results—General Comparison of Tracks and Genres
- the value obtained using the arithmetic mean of the criteria (scalarization using the meta-criterion in the form of a weighted average of criteria with equal weights of 0.333),
- structural similarity value,
- vertex quantitative similarity value,
- edge similarity value.
Compared Piece Similarity | Toccata and Fugue | Canon in D | Shchedryk | Nocturne op. 9 | Für Elise | Ode to Joy |
---|---|---|---|---|---|---|
Toccata and Fugue | ||||||
Canon in D | 0.01 | |||||
0.89 | ||||||
−0.44 | ||||||
−0.44 | ||||||
Shchedryk | −0.01 | 0.24 | ||||
0.86 | 0.98 | |||||
−0.46 | −0.13 | |||||
−0.46 | −0.13 | |||||
Nocturne op. 9 | −0.01 | 0.12 | 0.13 | |||
0.99 | 0.94 | 0.92 | ||||
−0.52 | −0.29 | −0.26 | ||||
−0.52 | −0.30 | −0.26 | ||||
Für Elise | 0.02 | 0.18 | 0.20 | 0.22 | ||
0.99 | 0.96 | 0.93 | 1.00 | |||
−0.47 | −0.19 | −0.16 | −0.16 | |||
−0.47 | −0.19 | −0.16 | −0.16 | |||
Ode to Joy | −0.17 | −0.07 | −0.02 | −0.13 | −0.11 | |
0.73 | 0.87 | 0.94 | 0.79 | 0.79 | ||
−0.64 | −0.56 | −0.51 | −0.60 | −0.58 | ||
−0.64 | −0.56 | −0.51 | −0.60 | −0.58 |
Compared Piece Similarity | The Godfather | Harry Potter | Requiem for a Dream | The Hobbit |
---|---|---|---|---|
The Godfather | ||||
Harry Potter | 0.01 | |||
0.99 | ||||
−0.47 | ||||
−0.47 | ||||
Requiem for a Dream | 0.15 | 0.06 | ||
0.88 | 0.96 | |||
−0.22 | −0.40 | |||
−0.22 | −0.40 | |||
The Hobbit | 0.09 | 0.08 | 0.11 | |
0.93 | 0.97 | 0.95 | ||
−0.33 | −0.38 | −0.33 | ||
−0.33 | −0.39 | −0.33 |
Compared Pieces Similarity | My Way | Rolling in the Deep | Thinking out Loud | UEFA CL (Vocal) | Yellow Submarine | Yesterday |
---|---|---|---|---|---|---|
My Way | ||||||
Rolling in the Deep | 0.10 | |||||
0.96 | ||||||
−0.34 | ||||||
−0.34 | ||||||
Thinking out Loud | 0.16 | 0.21 | ||||
0.96 | 0.99 | |||||
−0.25 | −0.19 | |||||
−0.25 | −0.19 | |||||
UEFA Champions League theme (vocal) | −0.07 | 0.00 | −0.02 | |||
0.88 | 0.96 | 0.96 | ||||
−0.56 | −0.50 | −0.52 | ||||
−0.57 | −0.50 | −0.52 | ||||
Yellow Submarine | 0.18 | 0.17 | 0.26 | 0.01 | ||
0.97 | 0.99 | 0.99 | 0.96 | |||
−0.21 | −0.24 | −0.11 | −0.47 | |||
−0.22 | −0.24 | −0.12 | −0.47 | |||
Yesterday | 0.18 | 0.08 | 0.12 | −0.01 | 0.18 | |
0.96 | 0.99 | 0.99 | 0.96 | 0.99 | ||
−0.17 | −0.38 | −0.32 | −0.51 | −0.24 | ||
−0.17 | −0.38 | −0.32 | −0.51 | −0.24 |
Compared Pieces Similarity | The Final Countdown | Nothing Else Matters | Numb | We Will Rock You |
---|---|---|---|---|
The Final Countdown | ||||
Nothing Else Matters | 0.22 | |||
1.00 | ||||
−0.16 | ||||
−0.16 | ||||
Numb | 0.17 | 0.17 | ||
1.00 | 1.00 | |||
−0.25 | −0.26 | |||
0.25 | −0.26 | |||
We Will Rock You | 0.07 | 0.09 | 0.22 | |
0.96 | 0.96 | 0.98 | ||
−0.39 | −0.36 | −0.16 | ||
−0.39 | −0.36 | −0.17 |
Compared Pieces Similarity | Für Elise | Harry Potter | Thinking Out Loud | UEFA CL (Violin) | UEFA CL (Vocal) | We Will Rock You |
---|---|---|---|---|---|---|
Für Elise | ||||||
Harry Potter | −0.06 | |||||
0.94 | ||||||
−0.58 | ||||||
−0.58 | ||||||
Thinking Out Loud | 0.18 | −0.01 | ||||
0.92 | 0.98 | |||||
−0.20 | −0.51 | |||||
−0.20 | −0.51 | |||||
UEFA Champions League theme (violin) | 0.04 | 0.06 | −0.02 | |||
0.98 | 0.98 | 0.96 | ||||
−0.44 | −0.41 | −0.52 | ||||
−0.44 | −0.41 | −0.52 | ||||
UEFA Champions League theme (vocal) | −0.11 | 0.18 | 0.12 | (covered in Section 4.4) | ||
0.85 | 0.98 | 0.95 | ||||
−0.60 | −0.22 | −0.30 | ||||
−0.60 | −0.23 | −0.30 | ||||
We Will Rock You | 0.05 | 0.08 | 0.19 | 0.17 | 0.07 | |
0.89 | 0.97 | 0.98 | 0.93 | 0.97 | ||
−0.38 | −0.37 | −0.22 | −0.22 | −0.40 | ||
−0.38 | −0.38 | −0.22 | −0.22 | −0.40 |
4.3. Obtained Results—Comparison of Pieces and Their Arrangements
4.4. Obtained Results—Specific Cases
4.5. Other Methods for Solving the Multi-Objective Problem
5. Discussion
6. Conclusions
Supplementary Materials
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Zbikowski, L.M. Conceptualizing Music: Cognitive Structure, Theory, and Analysis; Oxford University Press: Oxford, UK, 2002; ISBN 9780195140231. [Google Scholar] [CrossRef]
- Liu, H.; Yang, Y. Lead Sheet Generation and Arrangement by Conditional Generative Adversarial Network. In Proceedings of the 17th IEEE International Conference on Machine Learning and Applications (ICMLA), Orlando, FL, USA, 17–20 December 2018; pp. 722–727. [Google Scholar] [CrossRef]
- Lee, S.G.; Hwang, U.; Min, S.; Yoon, S. Polyphonic Music Generation with Sequence Generative Adversarial Networks. arXiv 2017, arXiv:1710.11418. [Google Scholar]
- Huang, A. Deep Learning for Music Composition: Generation, Recommendation and Control. Doctoral Dissertation, Harvard University, Harvard, UK, 2019. Available online: https://dash.harvard.edu/bitstream/handle/1/42029468/HUANG-DISSERTATION-2019.pdf (accessed on 5 March 2023).
- Huang, C.Z.; Hawthorne, C.; Roberts, A.; Dinculescu, M.; Wexler, J.; Hong, L.; Howcroft, J. The Bach Doodle: Approachable Music Composition with Machine Learning at Scale. In Proceedings of the 20th International Society for Music Information Retrieval Conference, Delft, The Netherlands, 4–8 November 2019; pp. 793–800, ISBN 978-1-7327299-1-9. [Google Scholar]
- Xie, J. A Novel Method of Music Generation Based on Three Different Recurrent Neural Networks. J. Phys. Conf. Ser. 2020, 1549, 042034. [Google Scholar] [CrossRef]
- Briot, J.-P. From Artificial Neural Networks to Deep Learning for Music Generation—History, Concepts and Trends. Neural Comput. Appl. 2021, 33, 39–65. [Google Scholar] [CrossRef]
- Daylamani Zad, D.; Araabi, B.N.; Lucas, C. A Novel Approach to Automatic Music Composing: Using Genetic Algorithm. Int. Comput. Music. Conf. Proc. 2006, 2006, 551–555. [Google Scholar]
- Huang, J.L.; Chiu, S.C.; Shan, M.K. Towards an automatic music arrangement framework using score reduction. ACM Trans. Multimed.Comput. Commun. Appl. (TOMM) 2012, 8, 1–23. [Google Scholar] [CrossRef] [Green Version]
- Kitahara, T. Music Generation Using Bayesian Networks. In Proceedings of the Machine Learning and Knowledge Discovery in Databases: European Conference, ECML PKDD 2017, Skopje, Macedonia, 18–22 September 2017; pp. 368–372. [Google Scholar] [CrossRef]
- Goienetxea, I.; Mendialdua, I.; Rodríguez, I.; Sierra, B. Statistics-Based Music Generation Approach Considering Both Rhythm and Melody Coherence. IEEE Access 2019, 7, 183365–183382. [Google Scholar] [CrossRef]
- Smith, R.; Dennis, A.W.; Ventura, D. Automatic Composition from Non-musical Inspiration Sources. In Proceedings of the 3rd International Conference on Computational Creativity (ICCC), Dublin, Ireland, 30 May–1 June 2012; pp. 160–164. [Google Scholar]
- Yang, C.; Tse, C.K.; Liu, X. Analyzing and Composing Music from Network Motifs. In Proceedings of the International Symposium on Nonlinear Theory and Its Applications (NOLTA), Sapporo, Japan, 19–21 October 2009; pp. 407–410. [Google Scholar]
- Liu, X.; Tse, C.K.; Small, M. Composing music with complex networks. In Proceedings of the International Conference on Complex Networks and Their Applications (COMPLEX), Shanghai, China, 23–25 February 2009; pp. 2196–2205. [Google Scholar]
- Ferretti, S. On the Modeling of Musical Solos as Complex Networks. Inf. Sci. 2016, 375, 271–295. [Google Scholar] [CrossRef] [Green Version]
- Chen, W.A.; Lin, J.H.; Jeng, S.K. Harmony Graph, a Social-Network-Like Structure, and Its Applications to Music Corpus Visualization, Distinguishing and Music Generation. Int. J. Comput. Linguist. Chin. Lang. Process. 2010, 15, 1–19. [Google Scholar]
- Muszynski, S. Novel Graph-Based Approach for Creating and Comparing Music Arrangements. In Proceedings of the 36th International Business Information Management Association (IBIMA), Granada, Spain, 4–5 November 2020; pp. 13266–13279, ISBN 978-0-9998551-5-7. [Google Scholar]
- Wilson, R.J. Wprowadzenie do Teorii Grafów, 2nd ed.; Wydawnictwo Naukowe PWN: Warsaw, Poland, 2012. [Google Scholar]
- Tarapata, Z. Multicriteria weighted graphs similarity and its application for decision situation pattern matching problem. In Proceedings of the 13th IEEE/IFAC International Conference on Methods and Models in Automation and Robotics (MMAR), Szczecin, Poland, 27–30 August 2007; pp. 1149–1155, ISBN 978-83-751803-3-6. [Google Scholar]
- Liu, X.F.; Tse, C.K.; Small, M. Complex network structure of musical compositions: Algorithmic generation of appealing music. Phys. A Stat. Mech. Appl. 2010, 389, 126–132. [Google Scholar] [CrossRef]
- Ren, I.Y. Complexity of Musical Patterns, University of Warwick. Available online: https://warwick.ac.uk/fac/cross_fac/complexity/study/emmcs/outcomes/studentprojects/ren_m1.pdf (accessed on 19 January 2023).
- Ukkonen, E. Approximate string-matching with q-grams and maximal matches. Theor. Comput. Sci. 1992, 92, 191–211. [Google Scholar] [CrossRef] [Green Version]
- Berghel, H.; Roach, D. An Extension of Ukkonen’s Enhanced Dynamic Programming ASM Algorithm. ACM Trans. Inf. Syst. (TOIS) 1996, 14, 94–106. [Google Scholar] [CrossRef]
- Blondel, V.D.; Gajardo, A.; Heymans, M.; Senellart, P.; Van Dooren, P. A Measure of Similarity between Graph Vertices: Applications to Synonym Extraction and Web Searching. SIAM Rev. 2004, 46, 647–666. [Google Scholar] [CrossRef]
Piece Title | |||||
---|---|---|---|---|---|
Canon in D | 687 | 9 | 50 | 0.30 | 5.56 |
Nocturne Op. 9 | 489 | 12 | 80 | 0.48 | 6.67 |
Shchedryk | 636 | 10 | 37 | 0.22 | 3.70 |
Toccata and Fugue | 1851 | 13 | 118 | 0.70 | 9.08 |
Für Elise | 618 | 13 | 75 | 0.44 | 5.77 |
Ode to Joy | 62 | 5 | 15 | 0.09 | 3.00 |
Godfather | 309 | 10 | 40 | 0.24 | 4.00 |
Harry Potter | 60 | 11 | 27 | 0.16 | 2.45 |
Requiem for a Dream | 377 | 7 | 18 | 0.11 | 2.57 |
The Hobbit | 135 | 7 | 27 | 0.16 | 3.86 |
Thinking Out Loud | 413 | 8 | 37 | 0.22 | 412 |
My Way | 288 | 11 | 56 | 0.33 | 5.09 |
UEFA Champions League theme (vocal part) | 36 | 8 | 19 | 0.11 | 2.38 |
UEFA Champions League theme (violin part) | 206 | 10 | 49 | 0.29 | 4.90 |
Rolling in the Deep | 657 | 8 | 35 | 0.20 | 4.38 |
Yesterday | 211 | 10 | 32 | 0.19 | 3.20 |
Yellow Submarine | 355 | 10 | 39 | 0.23 | 3.90 |
The Final Countdown | 775 | 9 | 43 | 0.25 | 4.78 |
Nothing Else Matters | 883 | 10 | 52 | 0.30 | 5.20 |
Numb | 403 | 8 | 34 | 0.20 | 4.25 |
We Will Rock You | 240 | 7 | 31 | 0.18 | 4.43 |
Compared Pieces Similarity | Meta-Objective (Weighted Sum) | Structural Similarity | Quantitative Similarity (Vertices) | Quantitative Similarity (Edges) |
---|---|---|---|---|
Canon in D | 0.33 | 1.00 | −0.01 | −0.01 |
Nocturne Op. 9 | 0.31 | 1.00 | −0.05 | −0.05 |
Shchedryk | 0.33 | 1.00 | −0.02 | −0.02 |
Für Elise | 0.31 | 1.00 | −0.05 | −0.05 |
Godfather | 0.27 | 1.00 | −0.09 | −0.09 |
Harry Potter | 0.27 | 1.00 | −0.09 | −0.10 |
Requiem for a Dream | 0.32 | 1.00 | −0.04 | −0.04 |
The Hobbit | 0.30 | 1.00 | −0.04 | −0.05 |
Thinking Out Loud | 0.30 | 1.00 | −0.05 | −0.05 |
Rolling in the Deep | 0.32 | 1.00 | −0.03 | −0.03 |
Yesterday | 0.28 | 1.00 | −0.07 | −0.08 |
The Final Countdown | 0.31 | 1.00 | −0.03 | −0.03 |
Nothing Else Matters | 0.32 | 1.00 | −0.03 | −0.03 |
Numb | 0.32 | 1.00 | −0.03 | −0.03 |
We Will Rock You | 0.31 | 1.00 | −0.04 | −0.04 |
Compared Pieces Similarity | Meta-Objective (Weighted Sum) | Structural Similarity | Quantitative Similarity (Vertices) | Quantitative Similarity (Edges) |
---|---|---|---|---|
UEFA Champions League theme (comparison of vocal and violin part) | 0.00 | 0.90 | −0.46 | −0.46 |
Rolling in the Deep (original and transposed version) | 0.33 | 1.00 | 0.00 | 0.00 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Muszynski, S.; Tarapata, Z. Methods of Automated Music Comparison Based on Multi-Objective Metrics of Network Similarity. Appl. Sci. 2023, 13, 3567. https://doi.org/10.3390/app13063567
Muszynski S, Tarapata Z. Methods of Automated Music Comparison Based on Multi-Objective Metrics of Network Similarity. Applied Sciences. 2023; 13(6):3567. https://doi.org/10.3390/app13063567
Chicago/Turabian StyleMuszynski, Szymon, and Zbigniew Tarapata. 2023. "Methods of Automated Music Comparison Based on Multi-Objective Metrics of Network Similarity" Applied Sciences 13, no. 6: 3567. https://doi.org/10.3390/app13063567
APA StyleMuszynski, S., & Tarapata, Z. (2023). Methods of Automated Music Comparison Based on Multi-Objective Metrics of Network Similarity. Applied Sciences, 13(6), 3567. https://doi.org/10.3390/app13063567